Re:Go gets preliminary WebAssembly support
by oelmekki on Saturday April 14, 2018 @06:47AM
(#16836778)
I 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).
Re:Go gets preliminary WebAssembly support
by yjftsjthsd-h on Saturday April 14, 2018 @10:11AM
(#16837374)
Could it also be that Go encodes symbols in a way that strip can't read, or is is just standard ELF stuff?
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).