# lz4/lz4

LZ4: An Extremely Fast Compression Algorithm

- HackerByte page: <https://hackerbyte.net/en/projects/lz4-an-extremely-fast-compression-algorithm-18106269>
- GitHub: <https://github.com/lz4/lz4>
- Programming language: C

Extremely Fast Compression algorithm

## AI-generated summary

LZ4 is a lossless compression algorithm renowned for its exceptional speed, offering compression speeds exceeding 500 MB/s per core and decompression speeds in the multiple GB/s range. It provides flexibility through an acceleration factor to tune compression ratio versus speed and includes a high\-compression derivative, LZ4\_HC. The algorithm is also compatible with dictionary compression, enhancing performance on small files when used with tools like Zstandard's Dictionary Builder.

## Key points

- Offers compression speeds over 500 MB/s per core and decompression speeds in the GB/s range.
- Supports dynamic compression tuning via an 'acceleration' factor.
- Includes LZ4\_HC for higher compression ratios at the cost of CPU time.
- Compatible with dictionary compression for improved small file performance.
- Available under BSD 2\-Clause license for the library and GPL\-2.0\-or\-later for the CLI utility.
