Advertisement
Promo
Google Chrome

Chrome takes new tack for faster JavaScript

Stephen Shankland CNET News

Published: 06 Feb 2009 17:20 GMT

  • Email
  • Trackback
  • Clip Link
  • Print friendly
  • Post Comment

Chrome programmers have removed a third-party software package from the browser in favour of their own software, as part of Google's attempt to improve performance of the open-source package.

The change came with a key component in V8, the browser's JavaScript processor, called regular expression manipulation or regexps. "As we've improved other parts of the language, regexps started to stand out as being slower than the rest. We felt it should be possible to improve performance by integrating with our existing infrastructure rather than using an external library," according to a Chromium blog post by programmers Erik Corry, Christian Plesner Hansen and Lasse Reichstein Holst Nielsen.

This kicked off Google's own project, Irregexp, the headline feature in the new developer preview version of Chrome, 2.0.160.0 (release notes).

Previously, Chrome used a supporting software package or library called JPCRE, a variation by the Webkit browser project of the PCRE package. That eased compatibility issues by making Chrome behave like the much more mature and tested Safari browser from Apple, also based on Webkit. However, Google has checked for compatibility of its own code by using its accelerated testing programme, which automatically checks code against portions of its own comprehensive web-search database.

"During development we have tested Irregexp against one million of the most popular web pages to ensure that the new implementation stays compatible with our previous implementation and the web," the programmers said.

Separately, the programmers said they created a new third version of their JavaScript benchmark. This version specifically exercises regular expressions taken from 50 of the web's most popular pages.

JavaScript is increasingly widely used to build sophisticated web applications, including Google Docs and Gmail as well as other interactive online services, making fast response or annoying lags very noticeable by users. It is also widely used for many more mundane aspects of web pages, so JavaScript speedup helps improve web browsing performance broadly.

More changes to V8 are coming, and Google has said it will detail some at its May developer conference, Google I/O. One session there will focus on the software, including "initiatives that will propel V8 to the next performance level," according to the session notes.

Separately, Google also released the new version 1.0.154.46 of Chrome for both its stable and beta version users on Wednesday. That version fixed a security problem and an issue with Chrome's incognito mode.

Credit: Chrome takes new tack for faster JavaScript from CNET News

  • Email
  • Trackback
  • Clip Link
  • Print friendlyPrint with EPSON

Did you find this article useful?


Full Talkback thread

0 comments

More in this Special Report

Roundup: Full coverage of Google Chrome

Roundup: Full coverage of Google Chrome

The search giant's launch of its own open-source browser sends a clear challenge to Microsoft more

Google shows Chrome OS, promises 2010 launch

Google shows Chrome OS, promises 2010 launch

Google's long-awaited Chrome OS aims at security, speed and simplicity in netbook cloud computing more

Google announces Chrome operating system

Google announces Chrome operating system

The Google Chrome Operating System project aims to build a Linux-based OS available for purchase on netbooks in the second half of 2010 more

Photos: Highlights of the beta browser

Photos: Highlights of the beta browser

For years, people have speculated about whether Google would ever release its own operating system. And now, it has — in a way... more

Leader: Chrome needs more than just sparkle

Leader: Chrome needs more than just sparkle

There's a lot of technology in Google's Chrome browser. Its success depends on something more more

Can Chrome shine amid the competition?

Can Chrome shine amid the competition?

ZDNet.com's Sumi Das reports on why Google has jumped into the browser fray, and explores the company's hopes for Chrome more

Benchmarks: Google Chrome

Benchmarks: Google Chrome

Google's Chrome browser seeks to set new speed standards and thus accelerate the development of AJAX-based web applications. Check out our comparative performance test to see how it fares more

Review: Google Chrome (beta)

Review: Google Chrome (beta)

Google has launched Chrome, an open-source browser that sends a clear challenge to Microsoft in the way it lets users work with applications more

Video: Google Chrome to open new front in browser war

Video: Google Chrome to open new front in browser war

On Tuesday evening, Google will release a beta of its Chrome browser. Rupert Goodwins looks forward to the latest campaign in the browser war more

Comment: All roads lead to Chrome

Comment: All roads lead to Chrome

With its new browser, Google has finally taken its gaudy, chrome-plated, futuristic ray gun and pointed it straight at Microsoft's head more

Google releases stable version of Chrome 3.0

Google releases stable version of Chrome 3.0

Google has announced that the third stable release of Chrome is ready for the world, a little over a year after its debut more

Company/Topic Alerts

Create a new alert from the list below:








Skip Sub Navigation Links to CNET Brand Links

Help

Become part of the ZDNet community.

Newsletters