Printed from http://www.electronista.com

Google details Chrome beta JavaScript performance improvement

updated 11:24 am EST, Fri February 14, 2014

Beta browser uses concurrent compilation to avoid JavaScript latency issues

Chrome users could see an extra boost in performance, thanks to the way the most recent Chrome Beta handles JavaScript. The company detailed how beta version 33 uses "concurrent compilation" to speed up the JavaScript functions of a web page by compiling it into native machine code while it is still running, in an effort to reduce latency in the browser.

Normally, the V8 JavaScript engine avoids compiling the JavaScript until it is executed, according to the Chromium Blog, with this first compilation being unoptimized in order to run quickly for the user. A second compilation by an optimizing compiler takes place afterward, but it usually pauses the execution in order to accomplish this. The new way takes advantage of the nature of multi-core processors to keep executing the code generated from the first compilation while the longer second compilation continues, avoiding the need to pause execution.

Graph showing Google V8 JavaScript compiler with concurrent compilation
Graph showing Google V8 JavaScript compiler with concurrent compilation


The change for the second compilation to take place in a background thread should give a considerable boost to browser users. In testing on a Nexus 5, the Mandreel score of the Octane 2.0 benchmark improved by 27 percent, and is said by Chrome programmer Yang Guo to have also helped graphical items, such as the Epic Citadel demo run much more smoothly than before.

It is unknown when the JavaScript improvement will be implemented in the main Chrome release, but considering the testing was performed on an Android device, it will likely appear on both mobile devices and desktops at around the same time.



By Electronista Staff
toggle

Comments

Login Here

Not a member of the MacNN forums? Register now for free.

toggle

Network Headlines

toggle

Most Popular

Sponsor

Recent Reviews

Logitech Hyperion Fury mouse

Selecting the correct gaming mouse comes down to finding a device that balances the needs of a user with a price they can afford. Ofte ...

Life n Soul BM211 Bluetooth speaker

Bluetooth speakers aren't only for listening to some music at the park or on a long bus ride, but can also be built with tablets in mi ...

Epson PowerLite Home Cinema 2030 projector

With high-definition televisions now the standard, 4K televisions becoming the next big thing, and plasma TVs going the way of the din ...

Sponsor

toggle

Most Commented

 
toggle

Popular News