Work  /  Data pipelines

Apache Spark

A drop-in codec for Spark and Hadoop that writes large .gz exports up to 4× faster.

up to 4×
faster large .gz exports on a server
70%
faster large reads on a desktop CPU
0
application code changes required
Side by side

Against stock

Writing a large .gz exportServer, 1.2 GB. Times faster than Spark's stock gzip codec.
Stock codec1×
Talarea4×

Same machine for every bar. Longer is faster.

The library

What it is

Apache Spark and Hadoop clusters routinely read and write large .gz text, CSV, and JSON datasets. Stock gzip compression often becomes the bottleneck that stalls an otherwise fast job.

What we did

What we did

We built a drop-in codec for Spark and Hadoop that requires no changes to application code and no new cluster hardware. Writing a large .gz export on a server runs up to 4× faster while using slightly less total CPU.

On a desktop CPU, compressed writes run up to 3× faster across standard compression levels, and large .gz reads run about 70% faster.

Measurements

Results

WorkloadSettingvs. stock
Large .gz exportServer, slightly less CPUup to 4×
Compressed writes (levels 1–9)Desktop CPUup to 3×
Large .gz readsDesktop CPU70% faster

The drop-in codec uses more memory than the stock gzip codec during compression.

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