Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tpl/collections: Use MapRange() in Where
Speeds up execution when the collection is a map: ``` │ stash.bench │ fix-mapkeys.bench │ │ sec/op │ sec/op vs base │ WhereMap-10 79.35µ ± 1% 61.45µ ± 1% -22.56% (p=0.002 n=6) │ stash.bench │ fix-mapkeys.bench │ │ B/op │ B/op vs base │ WhereMap-10 55.36Ki ± 0% 31.35Ki ± 0% -43.37% (p=0.002 n=6) │ stash.bench │ fix-mapkeys.bench │ │ allocs/op │ allocs/op vs base │ WhereMap-10 2.003k ± 0% 2.002k ± 0% -0.05% (p=0.002 n=6) ```
- Loading branch information