4 ms·
If that compression is internal-only, i'd start looking at zstd, which is much better at both speed and compression level
by out_of_protocol 3y ago
If that compression is internal-only, i'd start looking at zstd, which is much better at both speed and compression level
- pawurb 3y agoThanks for suggestion. Gem supports custom compression algorithms. I'll try to add more compression types to the benchmarks.
- out_of_protocol 3y agoNote zstd can be fine-tuned to almost any ratio between performance and compression, worth trying multiple different settings https://raw.githubusercontent.com/facebook/zstd/v1.3.4/doc/images/CSpeed2.png https://raw.githubusercontent.com/facebook/zstd/v1.3.4/doc/i...
- e12e 3y agoFrom TFA: > Optionally, you can hook up a custom compression algorithm. For example, Google Snappy offers even better performance than Brotli for the cost of worse compression ratios. ZSTD by Facebook is also worth checking out. (...) > The great news is that support for custom cache compression algorithms has recently been merged into the Rails main branch. But it may take a while before it’s available in a production Rails release.