JuliaLang/julia
View on GitHubbroadcasted bit operations are not optimized for BitArrays
Open
#36,168 opened on Jun 5, 2020
arrayshelp wanted
Repository metrics
- Stars
- (48,709 stars)
- PR merge metrics
- (Avg merge 20d 6h) (157 merged PRs in 30d)
Description
Base has methods that efficiently perform bitwise operations over BitArrays by performing the operations 64 bits at a time (i.e. on each "chunk"). This is much faster than looking up and operating on individual bits. This machinery is used for map and map!, but it does not appear to be leveraged for broadcasting bitwise operations over BitArrays. It would be nice to do so (at least for BitArrays of the same size, which is a common use case). If this is worth doing, I would be willing to attempt a PR (it would be my first).