Consider this bitset implementation by lemire is JS https://github.com/lemire/FastBitSet.js:
It appears to manually unroll some loops which might also give us a boost in performance, too, e.g.:
https://github.com/lemire/FastBitSet.js/blob/d673f8ed91b4eb4e0104881aa1ff0402c3203648/FastBitSet.js#L285-L299
The or operation is currently on my hot path and I'm curious whether manually unrolling some loops could help.
Consider this bitset implementation by lemire is JS https://github.com/lemire/FastBitSet.js:
It appears to manually unroll some loops which might also give us a boost in performance, too, e.g.:
https://github.com/lemire/FastBitSet.js/blob/d673f8ed91b4eb4e0104881aa1ff0402c3203648/FastBitSet.js#L285-L299
The
oroperation is currently on my hot path and I'm curious whether manually unrolling some loops could help.