improve performance of `unique` and `unique_by` (#3254)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Previously, `unique` and `unique_by` filters are implemented using `group_by` and then `map(.[0])`. This commit re-implements in C, to avoid unnecessary boxing of grouping, and improves the performance.
authored by itchyny · committed by GitHub · parent 8ba03f7 · Browse files · 4 files+45 added−3 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+45 added−3 removed
- other:+45 added−3 removed