Re:Postgres WASM
by pistoriusp on Monday October 03, 2022 @02:36PM
(#33071770)
Our 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
Zstandard is able to compress this file to 1.4MB.
a2b67f25.bin : 8.26% (16777216 => 1386514 bytes, a2b67f25.bin.zst)brotli 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).
Why is Brotli more efficient on Wasm files? I believe their built-in dictionary was tuned for HTML, CSS and JS content.
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-s...