nextclade icon indicating copy to clipboard operation
nextclade copied to clipboard

ENH: Use brotli compression for datasets and wasm files

Open corneliusroemer opened this issue 3 years ago • 0 comments

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: image

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): image

corneliusroemer avatar Aug 02 '22 11:08 corneliusroemer