DarkOtter / indexed-bitvec-rs

A rust library providing an indexed bitvector with (hopefully) fast rank and select operations.
Apache License 2.0
3 stars 0 forks source link

Unpack the select and rank indexes from each other #8

Closed DarkOtter closed 6 years ago

DarkOtter commented 6 years ago

At the moment the L1L2 and select indexes are interleaved (next to each other for each L0 block). As each are >4MiB this doesn't actually reduce the number of cache misses at all (I think), and it makes the indexing etc. much more complicated.

This should be replaced with a layout that has first the L0, then all of the L1L2 parts, then all of the select parts. This would allow casting to the right slice types once at the top level and would reduce the amount of repeating divisions etc. The building should also be done properly separately, without the select index being built in the middle of building the rank indexes.