16 ms·
What's the binary size like compared to C/C++? I've read the overhead of Rust's standard library is about 100kB. Not sure if putting it through the Emscripten
by rl3 10y ago
What's the binary size like compared to C/C++?
I've read the overhead of Rust's standard library is about 100kB. Not sure if putting it through the Emscripten toolchain changes that significantly.
- steveklabnik 10y agoIn general, https://lifthrasiir.github.io/rustlog/why-is-a-rust-executable-large.html https://lifthrasiir.github.io/rustlog/why-is-a-rust-executab... For this specifically, I made some numbers when it first landed: https://www.reddit.com/r/rust/comments/575pp6/compiling_to_the_web_with_rust_and_emscripten/d8pkki0/?context=1 https://www.reddit.com/r/rust/comments/575pp6/compiling_to_t... Regardless, this is in a "oh my god it works" state, not a super serious best-we-can-do state. My understanding is that it's larger than it has to be at the moment. We'll get there.
- rl3 10y ago>-rw-r--r-- 1 steve steve 159K Oct 12 20:00 sup.wasm It's looking pretty good already. Thanks for the reply.