You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
342: make all_equal() faster r=jswrenn a=fyrchik
Hello!
This PR adresses #282 issue. Variant with `dedup` does not short circuit, but one with `all` does.
I have also added some benchmarks and test for an empty iterator.
```
test all_equal ... bench: 999,832 ns/iter (+/- 217,245)
test all_equal_default ... bench: 4,814,277 ns/iter (+/- 315,335)
test all_equal_for ... bench: 2,096,174 ns/iter (+/- 165,596)
```
Let me know, what do you think.
Co-authored-by: Evgenii <[email protected]>
0 commit comments