LZ4
An open-source lossless compression algorithm library known for its extremely high compression and decompression speeds. It is released under the BSD 2-Clause license, written in C, and widely used in areas including the Linux kernel, file systems, databases, and containers.
Timeline (last 90 days)
In scenarios where compressed data is accessed frequently (such as caches, logs and image layers), choosing LZ4 yields higher overall benefit, because decompression cost matters more than storage cost.
LZ4 is an open-source compression library written in C and maintained by Yann Collet.
LZ4 has more than 12,000 stars on GitHub.
LZ4's decompression speed can reach several GB/s.
LZ4 uses the BSD 2-Clause license.
LZ4 is a dictionary-based lossless compression algorithm whose ideas derive from LZ77.
LZ4's matching strategy: it keeps only hash table indexes for the most recent bytes, and match lookup performs just one probe with no backtracking.
Compared with algorithms such as zlib and Snappy, LZ4's decompression speed is typically an order of magnitude ahead.
LZ4's compression ratio is generally between 2:1 and 3:1, while zlib is above 3:1.
LZ4 is integrated into the Linux kernel for zram and compressed caches.
4 more timeline events
All Facts (14)
In scenarios where compressed data is accessed frequently (such as caches, logs and image layers), choosing LZ4 yields higher overall benefit, because decompression cost matters more than storage cost.
50%UnverifiedLZ4 is an open-source compression library written in C and maintained by Yann Collet.
50%UnverifiedLZ4 has more than 12,000 stars on GitHub.
50%UnverifiedLZ4's decompression speed can reach several GB/s.
50%UnverifiedLZ4 uses the BSD 2-Clause license.
50%UnverifiedLZ4 is a dictionary-based lossless compression algorithm whose ideas derive from LZ77.
50%UnverifiedLZ4's matching strategy: it keeps only hash table indexes for the most recent bytes, and match lookup performs just one probe with no backtracking.
50%UnverifiedCompared with algorithms such as zlib and Snappy, LZ4's decompression speed is typically an order of magnitude ahead.
50%UnverifiedLZ4's compression ratio is generally between 2:1 and 3:1, while zlib is above 3:1.
50%UnverifiedLZ4 is integrated into the Linux kernel for zram and compressed caches.
50%UnverifiedLZ4 is used for transparent compression in the ZFS and Btrfs file systems.
50%UnverifiedLZ4 is used for block compression in the RocksDB database.
50%UnverifiedLZ4 is used in big data processing frameworks such as Hadoop and Spark.
50%UnverifiedFor real-time compression and high-throughput scenarios (network transmission, real-time logging), zstd or LZ4 are better choices.
50%