Thursday, March 11, 2010

Mozilla to Build New Fast JavaScript Engine

Leave a Comment

Mozilla borrows from webkit to build new fast JavaScript engine called JägerMonkey.

Mozilla's high-performance TraceMonkey JavaScript engine, which was first introduced in 2008, has lost a lot of its luster as competing browser vendors have stepped up their game to deliver superior performance. Mozilla to Build New Fast JavaScript EngineFirefox now lags behind Safari, Chrome, and Opera in common JavaScript benchmarks. In an effort to bring Firefox back to the front of the pack, Mozilla is building a new JavaScript engine called JägerMonkey.

Arstechnica reported, The secret sauce that will drive Mozilla's new JavaScript engine engine into the fast lane is some code borrowed from Apple's WebKit project. Mozilla intends to bring together the powerful optimization techniques of TraceMonkey and the extremely efficient native code generator of Apple's JSCore engine. The mashup will likely deliver a significant boost in Firefox's JavaScript execution speed, making Mozilla's browser a formidable contender in the ongoing JavaScript speed race.

In a blog post developer David Mandelin wrote,"The reason we're [building JägerMonkey] is that TraceMonkey is very fast for code that traces well, but for code that doesn't trace, we're stuck with the interpreter, which is not fast. The JägerMonkey method JIT will provide a much better performance baseline, and tracing will continue to speed us up on code where it applies".

The project is said to be at a relatively early stage of development and is not yet ready to be broadly demonstrated.

0 comments :

Post a Comment

Subscribe