3 ms·
There's a lot of stuff going on. Depending on which rust you used, we didn't do a lot of dead code elimination by default, and the default settings don't optimi
by steveklabnik 8y ago
There's a lot of stuff going on. Depending on which rust you used, we didn't do a lot of dead code elimination by default, and the default settings don't optimize for size. The 100 byte thing is the "add two numbers" function, but you have to do a few things.
See here: https://rustwasm.github.io/book/game-of-life/code-size.html https://rustwasm.github.io/book/game-of-life/code-size.html
In the future, it will do more of the right things by default, but for now, you have to do some configuration if you want the tiniest possible binary. Early days!