logoalt Hacker News

qoutealllast Friday at 12:19 PM1 replyview on HN

WebAssembly standard design has considered binary size optimization. The format itself is quite compact. But porting native code to Wasm often brings many large existing libraries which contain a lot of code which makes the binary large.

The native ecosystem never payed attention to binary size optimization, but the JS ecosystem payed attention to code size in the very beginning.


Replies

pjmlplast Friday at 12:50 PM

Yes, because compilers and linkers have optimize for size switches since the 1980's for fun.