Compression

LZ4 – extremely fast lossless data compression

LZ4 is a lossless compression algorithm designed to minimise the time required to compress and decompress data. Its emphasis on speed makes it particularly suitable for workloads where compression must introduce very little processing overhead.

The algorithm belongs to the LZ77 family and uses a compact, byte-oriented block format. The project also defines a framed format for files and streams, allowing applications to exchange compressed data without relying on a proprietary container.

LZ4 provides a reference library and command-line tool. Its applications range from filesystem and database compression to game assets, caches and data transmission. Developers can choose between rapid compression and stronger compression while retaining fast decompression.

This is free and open source software.

Key Features

  • Extremely fast compression and decompression of lossless data.
  • Standard block and frame formats for interoperability between applications.
  • LZ4_HC mode trades additional compression time for improved compression ratios.
  • Adjustable acceleration allows compression speed to be prioritised over density.
  • Dictionary compression through the library API and command-line utility.
  • Can use a supplied file as a compression dictionary, considering its final 64KB.
  • Supports streaming compression and decompression of large datasets.
  • Provides one-shot compression functions for processing complete data buffers.
  • Offers advanced functions that reuse compression contexts.
  • Includes a command-line utility for working with compressed files and streams.
  • Provides checksums and other metadata through the framed format.
  • Offers a C library suitable for integration into other applications.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: lz4.github.io/lz4
Support:
Developer: Yann Collet
License: BSD 2-Clause ‘Simplified’ License

LZ4 is written in C. Learn C with our recommended free books and free tutorials.


Related Software

Compression Tools
LZ4Focused on compression and decompression speed
ZstandardFast compression algorithm, providing high compression ratios
brotliGeneric-purpose lossless compression algorithm
lzopFile compressor favoring speed over compression ratio
pigzParallel implementation of gzip
ouchCLI tool for compressing and decompressing for various formats
pixzParallel, indexed xz compressor
gzipProvides the standard GNU file compression utilities
BZip3Spiritual successor to BZip2
bzip2Freely available, patent free, high-quality data compressor
PBZIP2Parallel implementation of bzip2
lrzipAchieve very high compression ratios and speed when used with large files
lbzip2Multi-threaded implementation of bzip2, suited for serial and parallel processing
ZXCHigh-performance lossless compression library and command-line tool
plzipMassively parallel lossless data compressor
p7zip-zstdp7zip fork with additional codecs and improvements
7-ZipFile archiver with a high compression ratio
ncompressFast, simple LZW file compressor
PXZRuns LZMA compression on multiple cores and processors
crabzLike pigz but written in Rust
LzipLossless data compressor aimed at Unix-like systems
cmixOptimize compression ratio at the cost of high CPU/memory usage
bscHigh-performance block-sorting compressor for large files
rapidgzipParallelized decompression of gzip files
KanziModular lossless compressor with multithreaded processing

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted