Skip to content

v0.6.0 - Win64/macOS Portability, Fast RV64 & Header-Only Decoder

Choose a tag to compare

@seb3773 seb3773 released this 25 Nov 13:25
· 11 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.6.0

1. Portability & Multi-Arch CI (Win64, macOS, musl)

  • Win64 & macOS Mach-O ASM/SIMD: Full ABI/directive support for x86-64 and ARM64 decoders (lz0dec_x86_64, lz0dec_fast_*, lz0dec_arm64) and AVX2/SSE2/NEON encoder kernels on Windows (_WIN32) and Apple Silicon/Intel macOS (__APPLE__).
  • GitHub Actions CI & Packaging: Automated Linux (x86_64 + ASan/UBSan), QEMU (arm64 + riscv64 scalar/RVV), native Windows (MSYS2 MinGW-w64), macOS arm64, and compact musl static release tarballs.

2. Fast RISC-V 64 Decoder & Single-Header lz0dec_min.h

  • True RV64 FAST Engine: 64-bit bit-window, table-driven Elias decoding, and optional Zbb (rev8/clz/ctz) in lz0dec_fast_riscv64.S (172–362 MB/s under QEMU, nearly 2x faster on text/code).
  • Header-Only C Decoder: Standalone lz0/lz0dec_min.h (#define LZ0DEC_IMPLEMENTATION, optional LZ0DEC_STATIC, 1,086 B at -Os).

3. Ultra-Light -1, 64-bit Sizes & CLI fixes

  • Fast Low-RAM -1: New greedy path (1.20–3.95 B/byte peak heap, 3x faster on corpus) with bit-exact ratio parity on -6 and higher levels.
  • 64-bit Size API & Unified CLIs: Enforced 4 GiB - 1 compress limit, size_t/int64_t *_ex decode APIs (> 2 GiB support), unified LZ0_VERSION, shared -h/-v & stdin/stdout (-), and -1,046 lines of dead parsers removed.

Release Packages

  • Linux x86_64: lz0-v0.6.0-linux-x86_64.tar.gz
  • Linux ARM64: lz0-v0.6.0-linux-arm64.tar.gz (compact static musl build)
  • Linux RISC-V 64: lz0-v0.6.0-linux-riscv64.tar.gz (static musl build)
  • Windows x86_64: lz0-v0.6.0-windows-x86_64.zip
  • macOS ARM64: lz0-v0.6.0-macos-arm64.tar.gz