By Walaika Haskins LinuxInsider Part of the ECT News Network
08/26/08 3:39 PM PT
Firefox 3.1 will be built with a new feature called "TraceMonkey," which Mozilla claims will greatly enhance the Web browser's speed. TraceMonkey focuses on faster usage of JavaScript, a scripting language often implemented in a way that makes it highly flexible, but leaves something to be desired in terms of speed.
Mozilla has announced the launch of a new feature for its Firefox Web browser designed to make it perform faster. Called "TraceMonkey," the feature is an evolution of Firefox's SpiderMonkey JavaScript engine and will be built into Firefox 3.1, according to the company.
To increase JavaScript speeds by an order of magnitude or more, Mozilla designed TraceMonkey with a new type of just-in-time compiler.
The company has measured speeds up to 37.5 times faster for specific "micro-benchmarks," according to Brendan Eich, Mozilla's chief technology officer. Determining browser speed depends a lot on what benchmarks are used, however, and he acknowledged that Mozilla has detected less of a speed boost by other standards.
"It's early yet, and we expect further speed improvements in the near term," he told the LinuxInsider.
Users eager to put TraceMonkey to the test can do so, Eich added. "TraceMonkey can be used in developer builds now, but you have to enable it using a hidden preference. It will be enabled by default for Firefox 3.1."
Speed Demon
During the past year, JavaScript performance on the Web has undergone significant changes, with every browser improving its JavaScript engine to boost execution speed, writes Mike Shaver, vice president of engineering, on the Mozilla blog.
"Firefox is about three times faster than Firefox 2 in various JavaScript benchmarks," he says.
However, developers and users continually demand better performance. This insatiable demand combined with Mozilla's own standards and the fact that its own application is largely and increasingly written in JavaScript, led Mozilla to develop TraceMonkey, according to Shaver.
The problem is that JavaScript is a powerful and dynamic language that until now has been implemented in a manner that is flexible but slow -- in technical terms, a matter of interpretation versus compilation, explained Ray Valdes, a Gartner (NYSE: IT) analyst.
These performance problems keep JavaScript from being used, Mozilla's Eich pointed out, "or make its performance less snappy than it should be for all sorts of advanced Web apps, image processing, games, spreadsheets, word processors, etc."
Stronger and Faster Web
"[Mozilla's] new initiative uses an implementation technique called 'just-in-time compilation' that delivers significantly greater speed," Valdes told LinuxInsider. "Other languages like Java and VB.NET have been using this technique for a while, but those languages have a design that is more conventional and easier to enhance. Applying this technique to Javascript has been a challenge until now."
Having met the challenge with TraceMonkey, Mozilla also realized increased speed in its other applications.
"This work also speeds up Firefox and Mozilla's other XUL (XML User Interface Language)-based applications which use JavaScript for their user interface programming," Eich noted.
The new feature could have an impact not just on Firefox, but on the Web at large as well.
"Increasingly, modern Web sites and applications like Google (Nasdaq: GOOG) Gmail have been making intensive use of JavaScript compared to years past. Gmail has about twenty times the Javascript code than the average Web page of five years ago. This has led to an increased need for an optimized version of JavaScript," Valdes pointed out.
That said, the technology is sure to make its way into Microsoft's (Nasdaq: MSFT) Internet Explorer, Apple's (Nasdaq: AAPL) Safari and other browsers, he added.
"Once everyone sees the resulting speed improvements, users of other browsers will clamor for a similar experience, and the development teams will respond," Valdes concluded.
Photoshop Tries to Win Over the Web 2.0 Crowd August 26, 2008
Adobe announced the September launch of Photoshop Elements 7, a version of the benchmark photo-editing software with features targeted at social networkers. It's banking on easier controls, combined with a Web site offering storage and uploads to photo-sharing sites, to win over a more mainstream user base.
Related Stories
Firefox Wraps Tail Around Ogg Video Format August 04, 2008
The next version of the Firefox Web browser will likely include support for the open source Ogg Theora video format. Mozilla is working to incorporate the Theora codec into the browser so that no plug-in is required to view Web video.
CherryPal Mini PC Makes Firefox the OS July 21, 2008
The CherryPal C100 is a new, small, inexpensive desktop designed to perform all its functions online, right down to data storage. The device runs a version of Debian Linux behind the scenes; however, the browser is really the application through which the user interfaces with the machine. Essentially, Firefox is the unit's operating system.
Related News Alerts
More by Walaika Haskins
ZeeVee's Zinc Browser Gets Web TV Right April 29, 2009
The Zinc Browser from ZeeVee updates the old Zviewer with tighter navigation and better catalog options. The finished application offers a great way to find TV shows and movies anywhere on the Web, regardless of whether they're hosted by Hulu, CBS, Netflix, Amazon's on-demand service or others.
Game Sales Sputter, 'GTA' Fails to Steal the Show April 23, 2009
It may appear as though the video game industry is beginning to join the economy at large in its slump, as March numbers from NPD were less than encouraging. However, a year-over-year perspective is difficult due to the timing of game releases and holidays. Meanwhile, Take-Two hasn't seen much success in introducing its violent "GTA" series to the Nintendo DS.
Can Microsoft Win the Online Game? April 16, 2009
Now that the major video game consoles have been on the market for two and a half years -- or more -- hardware sales have slowed considerably. Online services, however, still have room to grow. InStat says subscriber bases will take off in the coming years, and Microsoft's Xbox platform may come out the big winner.