Crate bitpacking [−] [src]
This crate is a Rust port of Daniel Lemire's simdcomp C library.
It contains different flavor of integers compression via bitpacking :
Each produces different formats, and are incompatible one with another, and requires integers to be encoded in block of different size..
BitPacker8x are designed specifically to leverage
AVX2 instructions respectively.
The library will fallback to a scalar implementation if these instruction sets are not available. For instance :
- because your compilation target architecture is not
- because the CPU you use is from an older generation
I recommend using
BitPacker4x if you are in doubt.
BitPacker trait for example usage.
Examples without delta-encoding