3 ms·
Does deflate lead the pack in any metric at all anymore? Only one I can think of is extreme low spec compression (microcontrollers).
by privatelypublic 1y ago
Does deflate lead the pack in any metric at all anymore? Only one I can think of is extreme low spec compression (microcontrollers).
- adgjlsfhk1 1y agoEven there, LZ4 is probably better.
- hinkley 1y agoYou think LZ4 is more portable than zlib? I'm gonna need some citations on that. zlib is 30 years old, according to Wikipedia. And that's technically wrong since 'zlib' was factored out of gzip (nearly 33 years old) for use in libpng, which is also 30 years old.
- adgjlsfhk1 1y agonot more portable, but probably faster in resource constrained environments
- duskwuff 1y agoA basic LZ4 decompressor is on the order of a few dozen lines of code. It's exceptionally easy to implement.
- moonshadow565 1y agoJust because its old doesn't mean it's more portable. If anything it makes me think it's even less portable.
- JoshTriplett 1y agoThe only metric deflate leads on is widespread support. By any other metric, it has been superseded.
- atiedebee 1y agoI'd assume memory usage as well, because it has a tiny context window compared to zstd
- JoshTriplett 1y agoYou can change the context window of zstd if you want. But yes, the default context window size for zstd is 8MB, versus 32k.