Mozilla has just landed a new JavaScript optimization feature to Firefox 3.1 development code base (Shiretoko) that effectively enhances JavaScript-based web applications performance by a 2X – 20X fold compared to the already-severely-pumped-up Firefox 3, according to a variety of JavaScript performance tests ran and published by Mozilla’s Brendan Eich.

TraceMonkey tracks the JavaScript code your page is running, identifies pieces that are repeatedly used, and translates that code (interpreted) to an a machine ready state (compiled) that runs much faster the next time it is needed. As this repetitive executions (loops) are very common, the performance gains are huge.
But the best way to understand it is to see it in action. Mozilla’s VP of Engineering, Mike Schroepfer, created a simple JavaScript image editor that lets you adjust a picture’s contrast and brightness with a couple of sliders. With a today’s nightly and TraceMonkey disabled (currently the default as it is still buggy), there is a very noticeable delay while sliding. Turn it on (javascript.options.jit.content = true in about:config) and the thing works just as you would expect: smoothly.
Seems like Firefox 3.1, targeted for first quarter 2009, has just got its must-upgrade feature. With just a couple of months in the wild, Firefox 3 is already starting to look old.
For test details and TraceMonkey background, check Brendan Eich’s TraceMonkey: JavaScript Lightspeed.
[...] já anda a ficar velho apenas com uns meses de existência (versão final). Mais informações no MozillaLinks e no blog do Brendan. Se gostou deste post então por favor subscreva ao RSS feed do Open Mania. [...]
In what way do you think Firefox 3 is already starting to look old?
Firefox 3 is also Firefox 3.1
Firefox 3.0 =! Firefox 3.1
[...] an open source JavaScript engine and virtual machine that uses optimization techniques similar to TraceMonkey (it compiles most commonly used code to avoid slow code interpretation).It also uses precise [...]
[...] TraceMonkey, the JavaScript optimization module that brings outstanding performance improvements to most web applications is not included in this release because of some nasty bugs, but is expected to be added soon. [...]
[...] upcoming Firefox 3.1 will finally have private browsing, as well as a revamped tab switcher and the best JavaScript performance out there. It’s not over yet, kids. Age: 2 minutes and 44 seconds Tags: Android Apple AwesomeBar [...]
[...] TraceMonkey’s capabilities into the DOM and other parts of our [...]
[...] mogoÄna posodobitev na podroÄja JavaScript-a. [...]
[...] TraceMonkey is a new JavaScript optimization technique that significantly improves web applications [...]
mozilla links





ShareThis
what’s up with this?:
TraceMonkey: JavaScript Lightspeed