r/cpp • u/Dizzy-Ingenuity-6815 • 12m ago
Parquet RLE/bit-packed decoding: up to 2.8× faster dictionary-index decoding than Apache Arrow's best SIMD configuration
I wrote a Parquet decoder in ~1,300 lines of C++. Here are the results against Apache Arrow.
I’ve been experimenting with alternative computational approaches to hybrid RLE/bit-packed decoding in Parquet.
After independently validating approximately 2.67 billion values across five workloads, the results are getting interesting.
Correctness
2.67 billion values tested.
Zero mismatches.
Zero count differences.
Performance against Arrow 25.0.1
2.2–3.5× faster dictionary-index decoding against default SIMD settings.
1.0–2.8× faster against Arrow’s best tested SIMD configurations.
2.9× faster definition-level decoding on TPC-DS, although other workloads showed regressions.
Implementation
Approximately 1,300 lines of C++.
Zero third-party runtime dependencies.
Scalar, AVX2 and AVX-512 backends.
No approximations or loss of information.
All four test suites also passed when rebuilt independently.
I’m currently measuring the implications for full Parquet scans rather than extrapolating kernel-level improvements into unrealistic end-to-end performance claims.
Thought some of you might find the results interesting.