Application Development - eWeek



Mozilla Speeds Up JavaScript with TraceMonkey





  Table of Contents:
  1. Mozilla Speeds Up JavaScript with TraceMonkey
  2. Speedy Performance
  3. Opening New Opportunities

Mozilla has revved up its SpiderMonkey JavaScript engine with a new just-in-time compiler. The TraceMonkey project boosts JavaScript performance by an order of magnitude. TraceMonkey is slated for release in Firefox 3.1 and is expected to also boost Canvas development.

Mozilla Speeds Up JavaScript with TraceMonkey
( Page 1 of 3 )

The folks at Mozilla have souped up JavaScript with a new just-in-time compilation scheme in a project known as TraceMonkey, which boosts JavaScript performance as much as 22.5 times depending on which benchmarks and tests you use.

Brendan Eich, chief technology officer at Mozilla, called the technology a game changer and said TraceMonkey moves the goal posts for JavaScript developers.

Like other dynamic languages such as Ruby and Perl, JavaScript has suffered from issues of poor performance compared with statically typed languages. TraceMonkey helps overcome those performance issues. Mike Schroepfer, former vice president of engineering at Mozilla, who now works at Facebook, developed a demo to show how TraceMonkey improves JavaScript performance.

Moreover, in a blog post, Eich said, "I'm extremely pleased to announce the launch of TraceMonkey, an evolution of Firefox's SpiderMonkey JavaScript engine for Firefox 3.1 that uses a new kind of Just-In-Time (JIT) compiler to boost JS performance by an order of magnitude or more."

In an interview with eWEEK, Eich said Mozilla began work on TraceMonkey just over 60 days ago with the help of Andreas Gal of the University of California, Irvine. And TraceMonkey is slated for inclusion in Firefox 3.1, Eich said.

In a post on Ajaxian.com, Ben Galbraith, co-founder of Ajaxian, said:

"For years, many of us have been salivating over the idea of JIT'ed JavaScript in the browser. Adobe's JIT'ing Flash VM [virtual machine] showed a preview of tremendous speed gains to be had, but we've had to wait until SquirrelFish from WebKit to see anything dramatic happen in the browser. Until now."

"A fantastic new improvement to Mozilla's JavaScript engine has landed. Code-named TraceMonkey, this engine utilizes a technique, called trace trees, which adds just-in-time native code compilation to SpiderMonkey," said John Resig, a Mozilla evangelist and creator of jQuery JavaScript library.



 
 
>>> More Application Development Articles          >>> More By Darryl K. Taft
 

FEATURED SPONSOR MESSAGE

Start the New Year with business intelligence—it’s a smart move

Join us on February 1 for an encore rebroadcast at either 5 am or 12 noon EST and discover how business intelligence (BI) supports companies in uncertain business and economic climates. Get expert advice on how to create a strategy that fits your organization's needs and budget and see how quickly it can pay for itself.

Click Here

Brought to you by


eweek digital



Advertisement
 
APPLY FOR A FREE 
SUBSCRIPTION BELOW:

>Try digital eWEEK
>Renew today
>Subscription help
>More FREE Subscriptions
First Name:Last Name:
Title:Company:
Address:City:
State:Zip Code:
Email:
eWEEK Quick LInks