thefuga/go-collections

optimize kv.Collection.Every functions to return early

オープン

#40 opened on 2022/08/02

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Go (3 件のフォーク)auto 404
good first issuerefactor

Repository metrics

Stars
 (26 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド