Work  /  Compression

LZ4

Faster decoding on large stock LZ4 files, direct random access, and early compression gains.

40–70%
faster decoding on 16 MiB+ stock files
7,500×+
random access reads on 1 GiB files
5–10×
early results, compression (identical output)
Side by side

Against stock and the alternatives

Compression at the fast levelServer. Times faster than stock LZ4.
Stock LZ41×
LZ4, built-in multithreading4×
Talarea7×

Same machine for every bar. Longer is faster.

The library

What it is

LZ4 is chosen wherever compression must stay out of the way—inside databases, filesystems, and games. Even when stock LZ4 is already fast, large archives and random lookups still leave performance on the table.

What we did

What we did

We accelerated decoding of large stock LZ4 files (16 MiB and above) to 40–70% faster than stock with identical output. For random access reads into large files, our tools run hundreds to thousands of times faster: more than 500× on 100 MB files and over 7,500× on 1 GiB files.

On the compression side, our early results for compression with identical output reach 5–10× faster than stock on a server; at the fast compression level, Talarea reaches about 7× stock versus about 4× for LZ4’s built-in multithreading.

Measurements

Results

WorkloadSettingvs. stock
Decoding large stock files16 MiB+ files, identical output40–70% faster
Random access reads100 MB to 1 GiB large files500–7,500×+
Compression (early results)Server, identical output (fast level: about 7× vs. about 4× for LZ4’s built-in multithreading)5–10×

The 5–10× compression figures (including about 7× vs. about 4× for LZ4’s built-in multithreading at the fast level) are early results; decoding speedups apply to large stock LZ4 files of 16 MiB or more.

Demo available

See this work live

Want to see side-by-side runs on your own hardware or data? Request a live demo with our engineering team.

Request a demo