amethyst / hibitset

Hierarchical bit set container
Other
117 stars 32 forks source link

Combine bitsets #24

Closed Aceeri closed 6 years ago

Aceeri commented 6 years ago

Would be good if we had a way to non-lazily combine 2 bitsets in a performant way.

Naive way is just:

for bit in bitset {
    other.add(bit);
}
WaDelma commented 6 years ago

I would like to look into this, if nobody else has started it.

torkleyy commented 6 years ago

I didn't, @Aceeri is quite busy with Specs PRs I think, so feel free to do it.

torkleyy commented 6 years ago

I think compound assignment operators could be used for this.