3 ms·
Have you looked at compressing that ~16MB wasm file with something like Brotli? When I was actively doing stuff with wasm (~2019), Brotli was the best compress
by justinclift 4y ago
Have you looked at compressing that ~16MB wasm file with something like Brotli?
When I was actively doing stuff with wasm (~2019), Brotli was the best compression approach. eg 16MB uncompressed -> 2.4MB compressed
https://github.com/golang/go/wiki/WebAssembly#reducing-the-size-of-wasm-files https://github.com/golang/go/wiki/WebAssembly#reducing-the-s...
- pistoriusp 4y agoOur demo is on Netlify, so I'm assuming that they've got gzip or something along those lines enabled. On my 50mbit/s (Germany :/) connection it's ~2 seconds
- ankraft 4y agoZstandard is able to compress this file to 1.4MB. a2b67f25.bin : 8.26% (16777216 => 1386514 bytes, a2b67f25.bin.zst)
- dchest 4y agobrotli compresses it to 1047967 bytes. And you can serve it as-is with Content-Encoding: br, unlike zstd. (zstd at --ultra -22 level: 1149751 bytes).