C Deflate

Open-source C projects categorized as Deflate

Top 7 C Deflate Projects

  1. zlib-ng

    zlib replacement with optimizations for "next generation" systems.

    Project mention: Discord Reduced WebSocket Traffic by 40% | news.ycombinator.com | 2024-09-20

    For what it’s worth, the benchmark on the Zstandard homepage[1] shows none of the compressors tested breaking 1GB/s on compression, and only the fastest and sloppiest ones breaking 1GB/s on decompression. If you’re OK with its API limitations, libdeflate[2] is known to squeeze past 1GB/s decompressing normal Deflate compression levels. So asking for multiple GB/s is probably unfair.

    Still, 10MB/s sounds like the absolute minimum reasonable speed, and they’re reporting nearly three orders of magnitude below that. A modern compressor does not run at bad dialup speeds; something in there is absolutely murdering the performance.

    And it might just be the constant-time overhead, as far as I can see. The article mentions “a few hundred bytes” of payload, and the discussion of measurements implies 1.5KB uncompressed. Even though they don’t reinitialize the compressor on each message, that is still a very very modest amount of data.

    So it might be that general-purpose compressors are just a bad tool here from a performance standpoint. I’m not aware of a good tool for this kind of application, though.

    [1] https://facebook.github.io/zstd/#benchmarks

    [2] https://github.com/zlib-ng/zlib-ng/issues/1486

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. uzlib

    Radically unbloated DEFLATE/zlib/gzip compression/decompression library. Can decompress any gzip/zlib data, and offers simplified compressor which produces gzip-compatible output, while requiring much less resources (and providing less compression ratio of course).

  4. tinf

    Tiny inflate library (inflate, gzip, zlib)

  5. fast_zlib

    Heavily optimized zlib compression algorithm

  6. Stm32-FatFs-Gzip

    This project offers a simplified compressor that produces Gzip-compatible output with small resources for microcontrollers and edge computers. He uses the very basic LZ77 compression algorithm and static Deflate Huffman tree encoding to compress / decompress data into Gzip files.

  7. nflate

    Naive implementation of DEFLATE in C for decompressing gzip files (RFC 1951, RFC 1952).

  8. jdeflate

    DEFLATE compressor/decompressor implementation

  9. SaaSHub

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

    SaaSHub logo
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 Deflate discussion

Log in or Post with

C Deflate related posts

Index

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

# Project Stars
1 zlib-ng 1,635
2 uzlib 310
3 tinf 177
4 fast_zlib 133
5 Stm32-FatFs-Gzip 22
6 nflate 4
7 jdeflate 1

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that C is
the 6th most popular programming language
based on number of references?