3 ms·
You can run the Go compiled wasm binary through wasm-opt (https://github.com/WebAssembly/binaryen https://github.com/WebAssembly/binaryen) and it will decrease
by nullocator 2y ago
You can run the Go compiled wasm binary through wasm-opt (https://github.com/WebAssembly/binaryen https://github.com/WebAssembly/binaryen) and it will decrease the size and give back some of the performance lost by using the standard go compiler over TinyGo. Fair warning it's pretty slow, and fun fact tinygo passes it's wasm files through wasm-opt which is why the tinygo compilation feels especially slow, I believe this can possibly be disabled via flag.