C Compression

Open-source C projects categorized as Compression

Top 23 C Compression Projects

Compression
  1. zstd

    Zstandard - Fast real-time compression algorithm

    Project mention: An Ode to Bzip | news.ycombinator.com | 2026-03-14

    lz4 can still be the right choice when decompression speed matters. It's almost twice as fast at decompression with similar compression ratios to zstd's fast setting.

    https://github.com/facebook/zstd?tab=readme-ov-file#benchmar...

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. LZ4

    Extremely Fast Compression algorithm

  4. ZLib

    A massively spiffy yet delicately unobtrusive compression library.

    Project mention: Gzip decompression in 250 lines of Rust | news.ycombinator.com | 2026-03-27
  5. cute_headers

    Collection of cross-platform one-file C/C++ libraries with no dependencies, primarily used for games

  6. opus

    Modern audio compression for the internet.

    Project mention: H.264 Streaming Fees: What Changed, Who's Affected, and What It Means | news.ycombinator.com | 2026-04-03
  7. zlib-ng

    zlib replacement with optimizations for "next generation" systems.

  8. LZFSE

    LZFSE compression library and command line tool

  9. cstore_fdw

    Columnar storage extension for Postgres built as a foreign data wrapper. Check out https://github.com/citusdata/citus for a modernized columnar storage implementation built as a table access method.

  10. zip

    A portable, simple zip library written in C (by kuba--)

  11. FiniteStateEntropy

    New generation entropy codecs : Finite State Entropy and Huff0

    Project mention: We Need SIMD (The Real Reason) | news.ycombinator.com | 2025-10-08

    Interesting example! I've been learning AVX512 by using it to optimize Huffman coding. I found _mm512_permutexvar_epi8 and used it to do byte-indexed lookups, but _mm512_permutex2var_epi8 means I can get by with 2 shuffles and 1 comparison instead of 4 shuffles and 3 comparisons. In the end, on my CPU (AMD 9950x), changing to _mm512_permutex2var_epi8 only sped up compression by ~2%.

    Compared to Huff0[1] (used by Zstd), my AVX512 code is currently ~40% faster at both compression and decompression. This requires using 32 datastreams instead of 4 used by Huff0.

    [1] https://github.com/Cyan4973/FiniteStateEntropy

  12. Minizip-ng

    Fork of the popular zip manipulation library found in the zlib distribution.

  13. smaz

    Small strings compression library

    Project mention: Efficient String Compression for Modern Database Systems | news.ycombinator.com | 2026-02-01
  14. bzip3

    A better and stronger spiritual successor to BZip2.

    Project mention: An Ode to Bzip | news.ycombinator.com | 2026-03-14
  15. lzbench

    lzbench is an in-memory benchmark of open-source compressors

  16. c-blosc

    A blocking, shuffling and loss-less compression library that can be faster than `memcpy()`.

  17. p7zip

    A new p7zip fork with additional codecs and improvements (forked from https://sourceforge.net/projects/sevenzip/ AND https://sourceforge.net/projects/p7zip/).

  18. squashfs-tools

    tools to create and extract Squashfs filesystems

  19. TurboPFor

    Fastest Integer Compression

  20. lizard

    Lizard is an efficient compressor with very fast decompression. It achieves compression ratio that is comparable to zip/zlib and zstd/brotli (at low and medium compression levels) at fast decompression speed (by inikep)

  21. zson

    ZSON is a PostgreSQL extension for transparent JSONB compression

  22. FastLZ

    Small & portable byte-aligned LZ77 compression (by ariya)

  23. gozstd

    go wrapper for zstd

  24. precomp-cpp

    Precomp, C++ version - further compress already compressed files

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C Compression discussion

Log in or Post with

C Compression related posts

Index

What are some of the best open-source Compression projects in C? This list will help you:

# Project Stars
1 zstd 27,210
2 LZ4 11,850
3 ZLib 6,902
4 cute_headers 5,008
5 opus 3,211
6 zlib-ng 2,025
7 LZFSE 1,819
8 cstore_fdw 1,785
9 zip 1,586
10 FiniteStateEntropy 1,474
11 Minizip-ng 1,458
12 smaz 1,222
13 bzip3 1,210
14 lzbench 1,056
15 c-blosc 1,053
16 p7zip 941
17 squashfs-tools 912
18 TurboPFor 833
19 lizard 702
20 zson 567
21 FastLZ 533
22 gozstd 477
23 precomp-cpp 458

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com