-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Offer zstd encoding for pareto superior compression #738
Comments
If at all, this should be implemented in LAPIS, so I transferred the issue. |
Actually this is more or less implemented, we should simply prefer zstd over gzip: #739 Note that this doesn't guarantee that CoV-Spectrum gets zstd compressed data, because this is part of the content negotiation and proxies play their part in that game. It might be that our proxies apply their own compression. Locally, without a proxy, Chrome got zstd compressed data. |
I did a quick test including/excluding gzip from the content-encoding accept header using requestly and these are the results (caching disabled): Note that zstd is slightly less efficient in compressing, but server responses are faster. I wonder if zstd compression strength can be increased. |
Recently, zstd has become supported in Chromium alongside br, gzip and deflate as a supported compression method.
It might be worth looking into using it for on the fly compression for LAPIS as that's exactly the domain where zstd is absolutely amazing: fast compression on server side, good compression ratios, fast decompression in browser.
I had that idea when I noticed you use gzip for the many requests for covSpectrum:
https://caniuse.com/mdn-http_headers_content-encoding_zstd
The text was updated successfully, but these errors were encountered: