Sunday, October 12, 2008

7. Enable TraceMonkey

TraceMonkey is a new Firefox feature that converts slow Javascript into super-speedy x86 code, and so lets it run some functions anything up to 20 times faster than the current version. It’s still buggy so isn’t available in the regular Firefox download yet, but if you’re willing to risk the odd crash or two then there’s an easy way to try it out.

Install the latest nightly build (ftp://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/), launch it, type about:config in the address bar and press Enter. Type JIT in the filter box, then double-click javascript.options.jit.chrome and javascript.options.jit.content to change their values to true, and that’s it - you’re running the fastest Firefox Javascript engine ever.

No comments: