Repository navigation
Lightweight, asymmetric LZ compressor designed around an extremely simple, memory-free (0-alloc) decoder.
About LZ0
LZ0 is an asymmetric lossless compression format that shifts complexity from the decompressor to the compressor. It combines high compression density with ultra-fast decompression requiring 0 bytes of dynamic memory (malloc).
What's New in v0.7.0
1. Tiny & Ultra-Tiny Assembly Decoders (incl. 117 B x86 16-bit)
lz0dec_tiny(-e tiny): Standalone tiny decoders preserving the full 4-argument safety contract (PROT_NONEguard-page verified) in 288 B (304 BWin64) on x86-64, 376 B on ARM64, and 300 B on RISC-V 64.lz0dec_ultra_tiny(-e ultra_tiny): Minimal 2-argument trusted-stream decoders in 143 B (160 BWin64) on x86-64, 224 B on ARM64, and 188 B on RISC-V 64.- 117 B 8086 16-bit Real-Mode Binary: Flat
lz0dec_ultra_tiny_x86_16.bin(DS:SI->ES:DI, verified in segmented real mode viamake ultra16), now bundled directly in the Linux x86-64 release archive.
2. Zero-Allocation Rust #![no_std] Decoder (lz0-dec v0.1.0)
- Safe by Default (
default = [],#![forbid(unsafe_code)]): Zero external dependencies and zero heap allocation (decode,container_uncompressed_size,decode_container). Bare-metal.textfootprint down to 2,037 B (thumbv7em-none-eabihf-Oz), 2,321 B (riscv64), 2,390 B (x86_64), and 3,113 B (aarch64), while beating portable C on throughput (180-640 MB/son structured inputs, 33.4 GB/s on literal runs). - Opt-In
fastFeature (unsafe): 64-bit segment-window bitreader, SWAR branch-free Elias decode, andu128wide match copies reaching 304-998 MB/s on text/binaries/spreadsheets and 8.4-33.3 GB/s on media. - Verification: Bare-metal
cargo checkacross 4 embedded targets, unit/fuzz tests, C-FFIPROT_NONEparity (make test_rust), and dedicatedrust-nostdCI job.
3. Tiered-SoA Ultra Parser (-9) & Multi-Arch L9 SIMD
- Memory & Speed Scaling: Sparse active-row slab pooling and reference-counted DAG backtrack cut
-9peak heap down to 6.1-61.4 MiB while speeding up 19-file corpus L9 compression from80.5 sto 24.2 s (alongside faster-1encoding and tunedlz0dec_fast_*). - ARM64 NEON & RISC-V RVV 1.0: Hand-written L9 hot kernels (
lz0_simd_arm64.S,lz0_simd_riscv64.S) verified bit-exact against scalar C and x86-64 AVX2/SSE2 (make enc_tiers,make sa_probe).
Release Packages
- Linux x86_64:
lz0-v0.7.0-linux-x86_64.tar.gz(includeslz0,lz0dec, andlz0dec_ultra_tiny_x86_16.bin) - Linux ARM64:
lz0-v0.7.0-linux-arm64.tar.gz(compact staticmuslbuild) - Linux RISC-V 64:
lz0-v0.7.0-linux-riscv64.tar.gz(staticmuslbuild) - Windows x86_64:
lz0-v0.7.0-windows-x86_64.zip - macOS ARM64:
lz0-v0.7.0-macos-arm64.tar.gz