asm.js Optimization
Discussions focus on asm.js performance and optimization in JavaScript engines like V8 and Firefox, including comparisons to JIT compilation, browser differences, and its relation to WebAssembly.
Activity Over Time
Top Contributors
Keywords
Sample Comments
asm.js can quite easily be optimized, but V8 is not yet optimized for it. So depending on the case it might run faster or slower depending on what JavaScript engine is running it.
With all major browser JIT compiling JavaScript, aren't they already?
The sufficiently smart JS compiler might be faster.
It's not an optimization for asm.js if you ignore the "use asm". It's just javascript then.
Sounds very similar to how browsers are optimizing js engines towards specific test implementations.
You can compile to asm.js if you care about performance that much.
wouldn't that be the role of asm.js?
You're thinking of ASM.js.
For Javascript, what about that method would make it more performant than Javascript's JITs?
An engine like this would likely not implement the hardest bits - JIT and optimization. Many, if not most, vulnerabilities in modern JS engines arise from performance optimizations.