thefuga/go-collections

optimize kv.Collection.Every functions to return early

Aberta

#40 aberto em 2 de ago. de 2022

 (0 comentário) (0 reação) (0 responsável)Go (3 forks)auto 404
good first issuerefactor

Métricas do repositório

Stars
 (26 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Currently, kv.Collection.Every uses kv.Collection.Each to iterate over the collection, which doesn't return early when a non-matching value is encountered, forcing more iterations than necessary.

Guia do colaborador