nextclade
nextclade copied to clipboard
ENH: Use brotli compression for datasets and wasm files
Brotli compresses datasets and wasm much better than gzip, it would be nice if we could take advantage of that.
Using max compression comparison on SC2 tree and sample sequences, we can see that brotli is 4-6 times better:

Wasm seems to be uncompressed at the moment? I download 2MB for each chunk - with gzip we reduce by a factor of 3 (from 2MB to 600kB), with brotli by another 30% (400kB):
