kamil-tarnas/BitArray

Introduce compress function

Opened this issue · 1 comments

Introduce compress function of some type, that can be applied to BitArray instance.

Compress could squeeze additional space out of the internal storage - this could be achieved through accessing two words at once and combining the information from both of them (crossing the word boundary and joining some of the bits from two (or multiple of them) to get the final array element.