go-collections icon indicating copy to clipboard operation
go-collections copied to clipboard

optimize kv.Collection.Every functions to return early

Open thefuga opened this issue 2 years ago • 0 comments

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.

thefuga avatar Aug 02 '22 14:08 thefuga