I'm trying to add two BitSet
objects together (mutating one of them). This should be an efficient operation for bitsets. But it seems that the only operation that does this is ++=
. Looking at the source, this doesn't seem to treat adding bitset differently.
Is it true, that in Scala 2.9.1, there are no efficient logical update operations on mutable bitsets defined? That's rather pointless, isn't it?
Responding to the comments I've filed an enhancement request.
Since I'm answering my own question (which doesn't have a positive answer) I'll just add some links to Bitset implementations I stumbled across. Currently I'm using the Java BitSet, but there seem to be more efficient alternatives:
OpenBitSet
, more implementation than Java'sIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With