n-young / trustdb

0 stars 1 forks source link

Compression #20

Open n-young opened 3 years ago

n-young commented 3 years ago

I don't like the way that this library chooses the compression scheme for you: https://docs.rs/compressed_vec/0.1.0/compressed_vec/

The following seems dank as well: https://docs.rs/bitpacking/0.8.2/bitpacking/index.html

We could roll our own / expose a unique crate? LOL; use the following for reference (I don't feel comfortable using it because I think it does too much of the work for us, and is also reaaaally old): https://github.com/jeromefroe/tsz-rs

n-young commented 3 years ago

The above were originally scrapped because of the need for type casting between float sizes. From here, we can see that this might not be a bad option. We may also be able to use type transmutation...