3 ms·
Related tip: anywhere you're looking to deploy compression in a backend, consider zstd (https://facebook.github.io/zstd/ https://facebook.github.io/zstd/). I've
by EricBurnett 6y ago
Related tip: anywhere you're looking to deploy compression in a backend, consider zstd (https://facebook.github.io/zstd/ https://facebook.github.io/zstd/). I've found it suitable for streaming compression (Gbps+ flows without exorbitant CPU usage), storage compression (high compression ratios at higher levels; fast decompression), and found implementations available to every language I've needed. It comes out strictly better than gzip ~across the board in my experience, and should be the default compressor to choose or start evaluations from if you have no other constraints.
I don't think it's yet deployed in browsers, so I'm restricting my recommendation to tools and backends. IIRC brotli is worth considering for browsers, but I haven't deployed it myself.
- amrx431 6y agoI wanted to try zstd for a rust based application running as on Android. The cross-compilation and integration left me in pain and I am stuck with `zlib` which is also great IMHO.
- EricBurnett 6y agoI'll note that zlib and gzip are approximately the same, with the same algorithm under the hood (`deflate`) but different framing. But if it's working well for your use-case, that's all that really matters - especially over having to deal with C interop.