ITPRO

Printed from www.itpro.co.uk

Register to receive our regular email newsletter at http://www.itpro.co.uk/registration.

The newsletter contains links to our latest IT news, product reviews, features and how-to guides, plus special offers and competitions.

Skip to navigation

    Firefox boosts speed with TraceMonkey

The browser will be much faster thanks to a new just-in-time JavaScript compiler called TraceMonkey.

By Maggie Holland, 26 Aug 2008 at 15:24

Firefox fans will soon be able to take advantage of much faster web applications thanks to a JavaScript engine overhaul.

The speed-enhancing component, dubbed TraceMonkey, features the addition of a new just-in-time compiler for JavaScript execution that will supersede the current SpiderMonkey compiler present in the browser. It aims to put JavaScript on a par with natively-compiled code so that certain applications cease to be as sluggish as they have been historically.

“Developer and user demand for performance is insatiable, and at Mozilla we demand it ourselves, since our application itself is largely and increasingly written in JavaScript. In addition to improving the performance of web applications, our work on JS performance in Firefox 3 made our own application snappier and more responsive,” Mozilla’s vice president of engineering Mike Shaver said in a blog post.

“We’re not done. In addition to continuing to work on our existing JavaScript interpreter (some 20% improved over Firefox 3 already), we’re also looking farther into the future of JS performance, and have some early news to share.”

Mozilla is hoping that the other browser players will follow its lead.

In tests conducted so far, Mozilla claims that it has seen a massive speed leap in certain JavaScript operations using TraceMonkey compared to Firefox 3. Specifically, it cites a 22.2x increase on function calls over Firefox 3, a 37.5x increase in performance when it comes to global loops and a 20.8x increase in terms of closed loop performance.

TraceMonkey takes advantage of a UC Irvine-developed technique called ‘trace trees’ as well as building on contributions and code that have been shared with the Tamarin Tracing project.

“The goal of the TraceMonkey project — which is still in its early stages — is to take JavaScript performance to another level, where instead of competing against other interpreters, we start to compete against native code. Even with this very, very early version we’re already seeing some promising results.”

TraceMonkey is present in the alpha version of Firefox 3.1, which is due for final release by the end of the year. At present, the functionality is turned off by default and Mozilla has admitted that there are still “bugs to fix and an enormous number of optimisations still to choose from” before the leap from alpha to full-blown release can be made.

In separate news, users of Firefox 2.0 will now receive a prompt suggesting they upgrade to the latest version of the browser, according to a blog post by Mike Beltzner, the company’s director of user experience.

Email to a friend

Print this page

Social Bookmark this article: What is this?

Be the first to comment on this article

You need to Login or Register to comment.

advertisement

    Latest Internet Reviews

HTC Touch HD

Rating: 4

Has HTC finally created a viable competitor to the iPhone, or is the Touch HD just another good-looking phone that struggles to cope with Windows Mobile?

Read more

 
advertisement

    Latest News Videos in Internet

Video: Q&A with Easynet Connect's Chris Stening

Play Video: Q&A with Easynet Connect's Chris Stening   Play

IT PRO spoke to Chris Stening, managing director of Easynet’s SME division, about whether ISPs are giving businesses the service they deserve.

 

    White papers

Want more background on today's hottest IT trends?

Visit IT PRO's white paper library for more on virtualisation, encryption and other topics.

    Register for IT PRO

You'll get exclusive member benefits including free white papers, downloads, Webinars and weekly newsletters full of the latest IT PRO news, reviews, insight and expertise.

Advertisement