FastLanes Rust
A Rust implementation of the FastLanes compression library
Azim Afroozeh and Peter Boncz. 2023. The FastLanes Compression Layout: Decoding > 100 Billion Integers per Second with Scalar Code. Proc. VLDB Endow. 16, 9 (May 2023), 2132–2144. https://doi.org/10.14778/3598581.3598587
FastLanes is a compression framework that can leverage LLVM's auto-vectorization to achieve high-performance SIMD decoding without intrinsics or other explicit SIMD code.
Usage
use BitPacking;
Differences to original FastLanes
[!CAUTION] Rust FastLanes is not binary compatible with original FastLanes
The BitPacking implementation in this library is reordered vs the original to enable fused kernels for transposed encodings (like Delta and RLE) in addition to the linear kernels such as FoR.
Verifying ASM
To validate the correctness of the generated assembly and ensure it is vectorized, you can use the following command:
RUSTFLAGS='-C target-cpu=native'
Note, it requires cargo install cargo-show-asm.
Benchmarking
RUSTFLAGS='-C target-cpu=native'
License
Licensed under the MIT license.