$ account fast-pack
The FastPFOR library is a C++ implementation focused on high-speed integer compression, particularly optimized for decoding 32-bit integers in data-intensive applications. It achieves performance through SIMD acceleration (SSE/AVX2/NEON) and asymmetric design prioritizing decompression speed over compression. The library provides a variety of codecs (FastPFor variants, SimdGroupSimple, VarInt, Simple8b/16, etc.) accessible via a factory pattern, enabling efficient storage and retrieval of integer arrays in scenarios like inverted indexes and columnar databases. Architecture centers around an abstract IntegerCODEC interface with concrete implementations for each codec, managed by CODECFactory. Low-level utilities include bitpacking helpers for arbitrary-width operations and aligned memory allocators. Build system (CMake) supports cross-platform compilation with configurable SIMD modes and optional Snappy integration. The library is validated through extensive benchmarks, unit tests, and real-world usage in systems like DuckDB and Apache Lucene.