awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
klauspost avatar

klauspost/compress

0
View on GitHub↗
5,525 stars·375 forks·Go·22 views

Compress

This is a high-performance Go compression library providing implementations of Zstandard, Snappy, and Huffman coding. It includes a parallel compression framework for distributing gzip and stream workloads across multiple CPU cores and a specialized Huffman codec optimized for modern CPU architectures.

The library features a Zstandard implementation that supports custom dictionaries and allocation-free decoding, alongside a Snappy compatible encoder for high-throughput data processing. It provides specific tools for dictionary generation and optimization to improve compression ratios for small or similar data blocks.

Additional capabilities cover HTTP compression middleware for handling gzip and zstd response bodies, as well as security mechanisms to mitigate side-channel attacks through random jitter and response padding. The project also supports compressed stream seeking, block concatenation, and the creation of self-extracting archives.

Features

  • High-Performance Compression Libraries - Provides high-performance Go implementations of Zstandard, Snappy, and Huffman coding.
  • Data Compression and Decompression - Reduces data size for storage or transmission and restores it to its original form using optimized algorithms.
  • Compression Libraries - A comprehensive collection of high-performance Go packages for data compression and decompression.
  • Dictionary-Based Compression - Uses pre-trained data samples as lookup tables to improve compression ratios for small or similar data blocks.
  • Compression Dictionary Generation - Analyzes sample data sets to generate optimized dictionaries that improve compression ratios for common data formats.
  • Huffman Decoding - The library decodes compressed blocks back into their original form using specialized decoding tables and stateless decoders.
  • Snappy Compression - Implements S2 decompression that maintains compatibility with standard Snappy-encoded content.
  • S2 Extensions - Provides S2 compression, a high-throughput extension of Snappy with concurrent processing support.
  • Zstandard Compression - Implements the Zstandard algorithm with configurable settings to balance speed and compression ratios.
  • Huffman Coding Implementations - Implements a specialized Huffman codec optimized for modern CPU architectures to minimize byte counts.
  • Huffman Codecs - Encodes independent data blocks using a Huffman codec optimized for modern CPUs to minimize byte counts for similar values.
  • Parallel Compression Tools - Implements a parallel compression framework that utilizes multiple threads to increase stream throughput.
  • Compressed Index Seeking - Creates a coordinate map of compressed offsets to allow random access without full stream decompression.
  • Parallel Implementations - Provides a parallelized implementation of Gzip to distribute workloads across multiple CPU cores.
  • Small Data Compression Optimization - Encodes and decodes payloads under 100KB using a non-streaming interface to avoid stream overhead.
  • Finite State Entropy Decompression - Restores compressed byte blocks to their original form using the inverse of the entropy encoding process.
  • Finite State Entropy Compression - Compresses byte blocks using near-optimal symbol encoding to reduce size for inputs with many similar values.
  • Payload Optimization - Improves bandwidth efficiency by optimizing the size of compressed request and response payloads.
  • Allocation-Free Decoding - Implements decompression using pre-allocated buffers to eliminate garbage collection overhead during data restoration.
  • Allocation-Free Decoders - Offers an optimized Zstandard decoder that eliminates memory allocations during data restoration.
  • Finite State Entropy Coding - Uses near-optimal symbol encoding to compress byte blocks based on the probability of value occurrences.
  • Side-Channel Attack Mitigations - Prevents BREACH side-channel attacks by injecting random jitter and padding into compressed server responses.
  • Stateless Buffer Management - Executes compression without maintaining internal state between write calls to reduce memory overhead for concurrent tasks.
  • Compression Middleware - Provides middleware for automatically compressing and decompressing HTTP response bodies.
  • Compression Utilities - Optimized and high-performance compression packages.

Star history

Star history chart for klauspost/compressStar history chart for klauspost/compress

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Compress

These projects share indexed features with Compress. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • google/brotligoogle avatar

    google/brotli

    14,753View on GitHub↗

    Brotli is a lossless data compression library and engine that uses dictionary coding and frequency analysis to reduce file sizes. It provides tools for shrinking data streams and files while ensuring every bit of original information is preserved for perfect restoration. The project focuses on optimizing web content and network bandwidth by reducing the size of HTML, CSS, and JavaScript files. It is designed for integration into web servers and browsers to improve the efficiency of data transmission. The library includes capabilities for both compressing and decompressing data streams. It al

    TypeScript
    View on GitHub↗14,753
  • lz4/lz4lz4 avatar

    lz4/lz4

    11,882View on GitHub↗

    This project provides a lossless compression algorithm and a byte-oriented compression library designed for high-speed data reduction and maximum decompression speed. It functions as a stream-oriented compression engine, a software library for encoding and decoding data blocks, and a command-line tool for managing interoperable compressed frames. The system distinguishes itself through the use of predefined pattern dictionaries to improve compression ratios for small data sets and small packets. It supports multiple processing modes, including high-speed block compression for minimal latency

    Cccompressionlz4
    View on GitHub↗11,882
  • facebook/zstdfacebook avatar

    facebook/zstd

    27,259View on GitHub↗

    Zstandard is a lossless data compression library and archive format designed for high compression ratios and fast real-time processing. It functions as a real-time data compressor and multi-threaded compression engine capable of distributing workloads across multiple CPU cores to increase throughput. The system features a dictionary-based compressor that trains on sample data to improve the compression ratio and speed of small files. It also provides long distance pattern matching to identify repeated sequences across large files. The library covers a broad range of capabilities including st

    C
    View on GitHub↗27,259
  • ip7z/7zipip7z avatar

    ip7z/7zip

    2,715View on GitHub↗

    7-Zip is a data compression tool and file archiver designed for creating and extracting archives. It functions as a utility for reducing the storage requirements of files and folders through high-ratio lossless compression and managing the 7z open-standard format. The software provides capabilities for cross-platform archive management, allowing users to open and create various archive formats across different operating systems. It supports data backup and recovery, as well as the packaging of multiple files into single archives for distribution. The project implements a variety of compressi

    C++
    View on GitHub↗2,715
Compare all 30 related projects→

Frequently asked questions

What does klauspost/compress do?

This is a high-performance Go compression library providing implementations of Zstandard, Snappy, and Huffman coding. It includes a parallel compression framework for distributing gzip and stream workloads across multiple CPU cores and a specialized Huffman codec optimized for modern CPU architectures.

What are the main features of klauspost/compress?

The main features of klauspost/compress are: High-Performance Compression Libraries, Data Compression and Decompression, Compression Libraries, Dictionary-Based Compression, Compression Dictionary Generation, Huffman Decoding, Snappy Compression, S2 Extensions.

Which projects share features with klauspost/compress?

Projects with overlapping indexed features include: google/brotli — Brotli is a lossless data compression library and engine that uses dictionary coding and frequency analysis to reduce… lz4/lz4 — This project provides a lossless compression algorithm and a byte-oriented compression library designed for high-speed… facebook/zstd — Zstandard is a lossless data compression library and archive format designed for high compression ratios and fast… ip7z/7zip — 7-Zip is a data compression tool and file archiver designed for creating and extracting archives. It functions as a… coells/100days — This project is a comprehensive collection of computer science implementations and an algorithm tutorial repository.… jiayihu/pretty-algorithms — This project is a collection of optimized computational routines and standardized implementations of fundamental…