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

Use binary search for L1/L2 after select sample lookup #7

Closed DarkOtter closed 6 years ago

DarkOtter commented 6 years ago

It could be a very wide area we're actually searching in the index (if the bitvector is very sparse of whichever kind of bit we are selecting on) and we can probably tell quite easily how sparse by looking at the next sample if there is one (or the end of the L0 block) to get an upper bound for the binary search.