Hacker News new | ask | show | jobs
by erik_p 3157 days ago
what about Zopfli/brotli?

Gzip compression benefits taper off in benefit after the "7" setting, IIRC. Brotli at higher settings compresses better, but you'd want to do it static as opposed to on the fly (at higher/highest settings)

1 comments

I've tried that as well, but you need a brotli module for nginx. No problem if you're using Docker, but I just used the mainline distribution of nginx on Ubuntu 16.

I'm curious if brotli's decompression is still fast on high compression levels. This is the case for gzip IIRC.

> I'm curious if brotli's decompression is still fast on high compression levels. This is the case for gzip IIRC.

Yes, it's optimized for fast decompression. Compression, on the other hand, is comparatively expensive. This trade-off makes Brotli very interesting for static assets.

https://quixdb.github.io/squash-benchmark/