zlib
Cloudflare fork of zlib with massive performance improvements (by cloudflare)
libdeflate
Heavily optimized library for DEFLATE/zlib/gzip compression and decompression (by ebiggers)
zlib | libdeflate | |
---|---|---|
4 | 7 | |
681 | 1,108 | |
0.6% | 2.5% | |
4.6 | 7.6 | |
about 1 month ago | 14 days ago | |
C | C | |
GNU General Public License v3.0 or later | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zlib
Posts with mentions or reviews of zlib.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-08-19.
-
Investigate performance with Process Watch on AWS Graviton processors
git clone https://github.com/cloudflare/zlib.git cd zlib && ./configure make && sudo make install cd ..
-
Improve data compression performance on AWS Graviton processors
If you have applications using zlib make sure to check alternative versions of the library. Cloudflare zlib is a good one, and there may be others available. Watch the AWS Graviton Getting Started for the latest information.
- Zlib – a spiffy yet delicately unobtrusive compression library
-
How are zlib, gzip and zip related? What do they have in common and how are they different?
A faster zlib fork is available in https://github.com/cloudflare/zlib but it's not rebased on top of the latest upstream and is not packaged for debian.
libdeflate
Posts with mentions or reviews of libdeflate.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-26.
- Ebiggers/libdeflate: Heavily optimized DEFLATE/zlib/gzip library
-
Introducing zune-inflate: The fastest Rust implementation of gzip/Zlib/DEFLATE
zune-inflate is a port of libdeflate to safe Rust.
-
Quite OK Image is now my favorite asset format
> The QOI benchmarks shows it only lagging a small bit behind PNG in compression ratio, while performing much faster (multiples) in both encoding and decoding.
Presumably that’s with stock libpng, which uses zlib. I wonder if anyone tried patching it to use the substantially faster (on x86) libdeflate[1] instead? It doesn’t do streaming, but you shouldn’t really need it for PNG textures.
[1] https://github.com/ebiggers/libdeflate
-
bitter v0.6 - the performant bit reading library with a new faster API
Eric biggers libdeflate https://github.com/ebiggers/libdeflate/blob/master/lib/deflate_decompress.c
-
Computing Adler32 Checksums at 41 GB/s
Note that libdeflate has used essentially the same method since 2016 (https://github.com/ebiggers/libdeflate/blob/v0.4/lib/adler32...), though I recently switched it to use a slightly different method (https://github.com/ebiggers/libdeflate/blob/v1.12/lib/x86/ad...) that performs more consistently across different families of x86 CPUs.
-
Zlib – a spiffy yet delicately unobtrusive compression library
Going away from Zlib proper but staying with its format, there’s libdeflate[1], an implementation that’s substantially faster on modern machines but can’t stream, and of course Zopfli[2], a glacially slow compressor that’s somewhat better (and occasionally much more so).
[1] https://github.com/ebiggers/libdeflate
[2] https://github.com/google/zopfli
- Firefox's Optimized Zip Format: Reading Zip Files Quickly
What are some alternatives?
When comparing zlib and libdeflate you can also consider the following projects:
zlib-ng - zlib replacement with optimizations for "next generation" systems.
zstd - Zstandard - Fast real-time compression algorithm
ZLib - A massively spiffy yet delicately unobtrusive compression library.
bitter - Extract bits from a byte slice