MCPcopy Create free account
hub / github.com/cwida/ALP

github.com/cwida/ALP @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
3,637 symbols 8,071 edges 439 files 628 documented · 17% updated 9mo ago★ 1775 open issues

Browse by type

Functions 2,854 Types & classes 783
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ALP: Adaptive Lossless Floating-Point Compression

Authors: Azim Afroozeh, Leonardo Kuffó, Peter Boncz
Conference: ACM SIGMOD 2024


GitHub What is this repo?

This repository contains the source code and benchmarks for the paper ALP: Adaptive Lossless Floating-Point Compression, published at ACM SIGMOD 2024.

ALP is a state-of-the-art lossless compression algorithm designed for IEEE 754 floating-point data. It encodes data by exploiting two common patterns found in real-world floating-point values:

  • Decimal Floating-Point Numbers:
    A large portion of floats/doubles in real-world datasets are decimals. ALP maps these values into integers by multiplying the number by a power of 10 and then compressing the result using a FastLanes variant of Frame-of-Reference encoding[^1], which is SIMD-friendly.
    Example: the number 10.12 becomes 1012 and is then fed to the FastLanes encoder.

  • High-Precision Floating-Point Numbers:
    The remaining values are typically high-precision floats/doubles. ALP targets compression opportunities in only the left part of these values, which it compresses using FastLanes dictionary encoding. The right part is left uncompressed, as it is required to preserve high precision and is often highly random and incompressible.


📊 How does ALP perform?

ALP Results

These results highlight ALP’s superior performance across all three key metrics of a compression algorithm:
Decoding Speed, Compression Ratio, and Compression Speed—outperforming other schemes in every category.


🧪 How to Reproduce Results

Just run the following script:

./publication/script/master_script.sh

For more information on reproducing our benchmarks, refer to our guide here,
or read the official ACM reproducibility report:
https://dl.acm.org/doi/10.1145/3687998.3717057


🏅 ACM Artifacts & Awards

We are happy to share that we participated in the SIGMOD Availability & Reproducibility Initiative, and our paper earned all three badges:

ACM Artifacts Available ACM Artifacts Evaluated ACM Results Reproduced

🎉 We're also proud to share that ALP won the SIGMOD Best Artifact Award!

Trophy


⏱️ Want to Benchmark Your Dataset?

Check out our guide: How to Benchmark Your Dataset
It explains how to run ALP on your own data.


🗂️ Repository Structure

  • src/: Core implementation of ALP and ALP_RD
  • benchmarks/: Benchmarking tools and datasets
  • include/: Header files for integration
  • scripts/: Utility scripts for data processing
  • test/: Unit tests
  • publication/: Publications and supplementary materials

📚 Publications


📄 License

This project is licensed under the MIT License. See the LICENSE file for details.


📬 Contact

If you have questions, want to contribute, or just want to stay up to date with ALP and related projects, join our community on Discord:
Join us on Discord Community Status


🧩 Used By

ALP has been integrated into the following systems:


[^1]: Learn more about FastLanes here: https://github.com/cwida/fastlanes

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 1,550
Function 1,304
Class 750
Enum 29
Interface 4

Languages

C++86%
Java7%
C6%
Python1%

Modules by API surface

src/fastlanes_generated_unffor.cpp125 symbols
src/fastlanes_generated_ffor.cpp125 symbols
publication/source_code/bench_end_to_end/include/common/runtime/Types.hpp105 symbols
publication/source_code/bench_end_to_end/include/alp_bench.hpp96 symbols
benchmarks/fls_bench/fls_bench.hpp96 symbols
publication/source_code/generated/fallback/scalar_nav_uf1/fallback_scalar_nav_1024_uf1_falp_src.cpp66 symbols
publication/source_code/generated/fallback/scalar_aav_uf1/fallback_scalar_aav_1024_uf1_falp_src.cpp66 symbols
publication/source_code/generated/arm64v8/sve_intrinsic_uf1/arm64v8_sve_intrinsic_1024_uf1_falp_src.cpp66 symbols
publication/source_code/generated/arm64v8/neon_intrinsic_uf1/arm64v8_neon_intrinsic_1024_uf1_falp_src.cpp66 symbols
publication/source_code/bench_end_to_end/include/vectorwise/Primitives.hpp59 symbols
publication/source_code/include/duckdb/limits.hpp58 symbols
publication/source_code/bench_end_to_end/3rdparty/jevents/perf-record.h56 symbols

For agents

$ claude mcp add ALP \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page