6 ms·
Please note that upx also compresses your binary contents and decompresses it at runtime. When downloading a WASM file over HTTP, the server can gzip it transp
by killercup 8y ago
Please note that upx also compresses your binary contents and decompresses it at runtime.
When downloading a WASM file over HTTP, the server can gzip it transparently. It'd be interesting to compare the effects on the size with what upx does (which is more specialized than gzip).
- oelmekki 8y agoI see, thanks. I used vanilla `strip` on my binary and it did not produce any size gain (so the strip flag of go compiler is plenty enough). Indeed, given how browsers already handle gunziping resources, it's probably best to rely on it. My binary, stripped by the go compiler and gziped, is 525ko (against 480ko using upx).
- yjftsjthsd-h 8y agoCould it also be that Go encodes symbols in a way that strip can't read, or is is just standard ELF stuff?