Apache Spark
A drop-in codec for Spark and Hadoop that writes large .gz exports up to 4× faster.
Against stock
Same machine for every bar. Longer is faster.
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
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.
Results
| Workload | Setting | vs. stock |
|---|---|---|
| Large .gz export | Server, slightly less CPU | up to 4× |
| Compressed writes (levels 1–9) | Desktop CPU | up to 3× |
| Large .gz reads | Desktop CPU | 70% faster |
The drop-in codec uses more memory than the stock gzip codec during compression.
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.