Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How much faster? I would think gzip should even out most of the difference between a text based and a byte based code.


> I would think gzip should even out most of the difference between a text based and a byte based code.

You would be wrong then. Quoting Unity https://blogs.unity3d.com/2015/06/18/webgl-webassembly-and-f...

"Experimenting with a prototype WebAssembly format on a build of our AngryBots demo, we saw the size of the generated JavaScript code go from 19.0 MB of asm.js code (gzip-compressed to 4.1 MB) down to 6.3 MB of WebAssembly code (gzip-compressed to 3.0 MB). This means that the amount of data the browser needs to process gets reduced by 3.0x, and the compressed download size gets reduced by 1.4x."

So WebAssembly is 1.4x smaller, after gzip.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: