Skip to content

v0.7.0 - Tiny & Ultra-Tiny Decoders, Rust no_std Crate, and Tiered-SoA L9 SIMD

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 15:15
· 2 commits to main since this release

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_NONE guard-page verified) in 288 B (304 B Win64) 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 B Win64) 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 via make 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 .text footprint 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/s on structured inputs, 33.4 GB/s on literal runs).
  • Opt-In fast Feature (unsafe): 64-bit segment-window bitreader, SWAR branch-free Elias decode, and u128 wide match copies reaching 304-998 MB/s on text/binaries/spreadsheets and 8.4-33.3 GB/s on media.
  • Verification: Bare-metal cargo check across 4 embedded targets, unit/fuzz tests, C-FFI PROT_NONE parity (make test_rust), and dedicated rust-nostd CI 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 -9 peak heap down to 6.1-61.4 MiB while speeding up 19-file corpus L9 compression from 80.5 s to 24.2 s (alongside faster -1 encoding and tuned lz0dec_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 (includes lz0, lz0dec, and lz0dec_ultra_tiny_x86_16.bin)
  • Linux ARM64: lz0-v0.7.0-linux-arm64.tar.gz (compact static musl build)
  • Linux RISC-V 64: lz0-v0.7.0-linux-riscv64.tar.gz (static musl build)
  • Windows x86_64: lz0-v0.7.0-windows-x86_64.zip
  • macOS ARM64: lz0-v0.7.0-macos-arm64.tar.gz