by josephg · 9y ago · 0 comments
[1]: https://github.com/killercup/wasm-experiments/blob/bf3b30eed...
[2]: https://github.com/killercup/wasm-experiments/blob/bf3b30eed...
That said, this target uses https://github.com/alexcrichton/dlmalloc-rs
Running the binaryen optimizer on that wasm shrinks it by 6%. Probably more can be done on the Rust side.
[profile.release]
opt-level = "s"
(i.e., optimizing for size), to get it down to 23kB gzipped.