Compression

rapidgzip – parallel gzip decompression and random access

rapidgzip is a high-performance gzip decompressor designed to exploit multicore processors. Unlike conventional gzip tools that process compressed data sequentially, rapidgzip can divide decompression work across multiple threads.

One of its distinguishing capabilities is support for random access within compressed files. This can be particularly valuable when working with large datasets where repeatedly decompressing entire files would be inefficient.

rapidgzip provides both a command-line tool and programming interfaces. Its implementation combines indexed access, caching and parallel prefetching to improve throughput. The utility is specifically a decompressor rather than a general-purpose gzip compressor, an important distinction for users comparing it with tools such as pigz.

This is free and open source software.

Key Features

  • Parallel decompression of most ordinary gzip files.
  • Works with gzip data produced by conventional tools, including GNU gzip.
  • Supports random access to positions within compressed files.
  • Can create indexes describing compressed data block positions.
  • Imports existing indexes to avoid repeating indexing operations.
  • Exports indexes for reuse in later processing sessions.
  • Provides compatibility with several gzip index formats.
  • Uses an LRU cache and parallel prefetching to accelerate repeated access.
  • Allows the number of decompression threads to be configured.
  • Supports decompression through standard input and output.
  • Can count decompressed bytes and newline characters.
  • Includes an analysis mode for inspecting gzip and Deflate block structures.
  • Provides a Python file interface supporting seek, read and close operations.
  • Offers a C++ library interface for integration into other applications.
  • Supports processing compressed files without creating a fully decompressed intermediate copy.

Website: github.com/mxmlnkn/rapidgzip
Support:
Developer: Maximilian Knespel
License: MIT License or Apache License 2.0

rapidgzip

rapidgzip is written in Python. Learn Python 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