4 ms·
There are some speed comparisons in the comments here; it would be really nice to see some compiled-code-size comparisons between native and asm.js.
by surrealize 14y ago
There are some speed comparisons in the comments here; it would be really nice to see some compiled-code-size comparisons between native and asm.js.
- pcwalton 14y agoSee http://mozakai.blogspot.com/2011/11/code-size-when-compiling-to-javascript.html http://mozakai.blogspot.com/2011/11/code-size-when-compiling... Comparable with native after you gzip. Note that this wasn't asm.js, however, just vanilla Emscripten output. asm.js output will be somewhat larger due to the strict type system.
- surrealize 14y ago> asm.js output will be somewhat larger due to the strict type system. That's the part I was wondering about. I'm hoping that we'll see rust compile to asm.js! ISTM that there's some similarity between web worker "transferable object" semantics and rust unique pointer semantics. If ES "binary data" objects end up being "transferable objects", maybe rust unique pointers can map onto transferable objects in rust tasks that are compiled to asm.js and run as web workers.