4 ms·
WebAssembly implies static linking (malloc / printf & all are part of the shipped module) and code size matters since it directly influence users (since there m
by carlopi 5y ago
WebAssembly implies static linking (malloc / printf & all are part of the shipped module) and code size matters since it directly influence users (since there might be delays in downloading big payloads).
Both factors plays a role in deciding to plan putting work in optimizations like this.
There are some general gains to be had with this optimization, and probably the same ideas were already around for a while, but putting together in this way was helped by thinking about WebAssembly specific constraints.
- sroussey 5y agoCode size always matters, and while wasm may be an extreme case, hopefully this kind of benefit can contribute to shrinking other kinds of code targets.
- pjmlp 5y agoNot necessarily, shared libraries are on the WebAssembly roadmap.
- carlopi 5y agoYes, I wanted to be more nuanced but oversimplified. Thanks for mentioning this!