4 ms·
I'm not sure what flags wasm-pack uses, but you can try using opt-level=s for smaller codegen. Also lto can help. You can take a look at cargo-bloat. It's some
by singron 5y ago
I'm not sure what flags wasm-pack uses, but you can try using opt-level=s for smaller codegen. Also lto can help.
You can take a look at cargo-bloat. It's sometimes surprising what code takes up all the space.
There are some general tips here: https://github.com/johnthagen/min-sized-rust https://github.com/johnthagen/min-sized-rust
- neoneye2 5y ago"surprising what code takes up the space". Lol, indeed, I will try out your excellent suggestions.