There are two answers to this. On desktop this tends to be true because Emscripten exports only js that is core to the language and well optimized. You also don't have GC pause issues. This uses about the same memory.
ASM.js, which is landing this month gives you about 4x faster and is already supported by Emscripten. This uses less memory. JS on ARM is not in good shape. We have had issues with IonMonkey. It's causing all sorts of problems with Emscripten generated code as typed arrays are slow. This is a temporary situation and is being worked on. Martin Best E: [email protected] C: (647) 292-2748 This message was written on my iPhone. Likely to be short, overly direct, and totally unintelligibly auto corrected. On 2013-03-06, at 11:04 AM, Lawrence Mandel <[email protected]> wrote: >>> Even though obfuscation is a side effect of Emscripten; performance >>> and optimal memory use are others. >> >> Writing C++ and compiling to JS via Emscripten is now more performant >> and uses less memory than writing JS straight? > > That is my understanding. I've cced Martin, who should be able to give a more > definitive answer. > > Lawrence _______________________________________________ dev-webapps mailing list [email protected] https://lists.mozilla.org/listinfo/dev-webapps
