Compression
Reusable compression crates with borrowed input and caller-owned output buffers. They import no IC API and do not depend on persistence or benchmark canisters.
| Crate | Purpose |
|---|---|
| LZ4 | Checked standard LZ4 block encoding and decoding, including an in-bounds SIMD128 long-match encoder on wasm64. Suitable for bounded peer packets and application payloads. |
Use the root test harness to select a package:
python3 tools/test.py run --crate cdk-rsx-compression-oracle --jobs 4
The compression benchmark owns fixture, codec and complete-call measurements; TODO tracks qualification. Reactor's transport selects compression only when it reduces a packet's payload. Gzip is a benchmark comparison dependency, not a product crate. Recorded LZ4 qualification retains its exact artifacts and matched RRT results.