Work  /  Compression

gzip

Faster gzip decompression, direct random reads, and single-file extraction from compressed images—in standard gzip files every reader still opens.

up to 14×
faster full gzip decompression
~250×
faster random reads in compressed files
40–1,000×+
single-file extraction from disk images (early results)
Side by side

Against stock and the alternatives

Decompressing gzip files written by our toolsDesktop. Times faster than stock gzip.
Stock gzip1×
pigz1.3×
Talarea4.2×
Compressing with byte-for-byte identical outputServer. Times faster than stock gzip.
Stock gzip1×
Talarea12×

Same machine for every bar. Longer is faster.

The library

What it is

gzip and zlib sit inside nearly every operating system, web server, language runtime, database, and backup tool. Reading compressed data—or pulling a small slice or single file out of a large archive or compressed disk image—usually forces software to decompress everything ahead of it from the beginning, turning reads and extraction into a major bottleneck.

What we did

What we did

We removed the reading bottleneck while keeping files standard gzip that every existing gzip reader still opens, with identical decompressed output. Decompressing files written by our tools runs up to 14× faster on a server—and in head-to-head decompression tests on those files, Talarea reaches about 4× stock versus about 1.3× for pigz. Random reads inside a compressed file run about 250× faster than reading from the start, and in early results, pulling a single file out of a gzip-compressed disk image runs 40× to over 1,000× faster depending on file size, with small files fastest.

For ordinary gzip files written elsewhere, decompression runs about 50% faster on desktop and Arm processors, with early work reaching up to 3× faster. On the compression side, our drop-in replacement also compresses up to 12× faster while producing byte-for-byte identical gzip output.

Measurements

Results

WorkloadSettingvs. stock
Full decompressionStandard gzip written by our tools on a server, identical output (vs. pigz: about 4× vs. about 1.3×)up to 14×
Random reads inside a fileFiles written by our tools, vs. reading gzip from the startabout 250×
Single-file extraction (early results)Gzip-compressed disk image, files written by our tools (small files fastest)40–1,000×+
CompressionServer, byte-for-byte identical outputup to 12×

The largest decompression, random-read, and single-file gains apply to files written by our tools (which remain standard gzip that every reader opens); ordinary gzip files written elsewhere see smaller gains today—about 50% faster on desktop and Arm, with early work reaching up to 3× faster. Single-file extraction figures (40× to over 1,000×) are early results.

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