-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add optimized findall(::AbstractArray{Bool}) method #25879
Conversation
Allocating result upfront is faster, but it is possible only when collection can be iterated twice. This fixes a regression introduced when rewriting the generic method.
Let's try again: |
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @ararslan |
Hmm, there are (probably spurious) improvements all over the place, but the relevant one ( |
The @nanosoldier |
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @ararslan |
OK, with the new run |
Does this method remove the need for specialized |
No, I don't think so. The method this PR reintroduces used to exist already, both are useful. |
Allocating result upfront is faster, but it is possible only when collection can be iterated twice.
This fixes a regression introduced when rewriting the generic method.
Fixes #25489.
@nanosoldier
runbenchmarks(ALL, vs=":master")