-
-
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
Speed up BitArray packing #13946
Speed up BitArray packing #13946
Conversation
this is the kind of thing we should try and track perf for, ref #13893 |
Changes in convert(::BitArray, ::AbstractArray) and dumpbitcache(): * avoid branches in for loops * pack 8 Bools at a time * use inbounds
0aef1c2
to
d7cd023
Compare
I managed to speed up the whole process of BitArray packing.
Timings:
with this PR:
If everything works, and after some grace period, this could also be backported.
Yes, definitely. |
Also, a ~2x speedup in |
6ebc60d
to
7fee9ab
Compare
Very impressive! |
Speed up BitArray packing
Nice! |
Addresses #13914.