lz0
An LZ format designed to concentrate computation during compression so data can be decompressed without dynamic memory allocation.
What does it do?
The encoder finds matching spans in the input and produces a structured stream of LZ tokens. The decoder reads the tokens to restore the original data without dynamic memory allocation. It expands repeated spans by copying previously output bytes with overlap. Disk files handled by the CLI have a header of at least 8 bytes before the raw compressed data. Its main targets are binary data and structured datasets ranging from hundreds of KB to several MB.
Key features
- Compress input data in a lossless LZ format
- Decode LZ tokens without dynamic memory allocation
- Expand repeated spans by copying previously output bytes with overlap
- Add an 8-byte header to CLI files to distinguish them from raw bitstreams