Chrome Beta Introduces Speedier Concurrent JavaScript Compilation

Chrome Beta Introduces Speedier Concurrent JavaScript Compilation

Google gave JavaScript a kick in the pants with its V8 engine a while ago, but it has continued to tune the performance of it and Chrome over the years, with the latest improvement being background JS compilation in the browser’s most recent beta.

As described in a blog post by Google’s Yang Guo, the beta now includes “concurrent compilation”, which essentially means JavaScript compilation can now be done on a separate thread, rather than the main one.

The image below shows where asynchronous compilation doesn’t stop the main thread from executing, allowing the browser (and whatever JS-powered application is running at the time) to continue unabated. In this case the app is the Mandreel test from the Octane benchmark:

According to Guo, the Nexus 5 saw a 27 per cent performance increase in the Mandreel test, thanks to this development and other browser-based application should run better across the board.

Note that concurrent compilation isn’t available in the stable version of Chrome, you’ll have to grab the beta to test it out.

Compiling in the background for a smoother user experience [Chromium blog, via TheNextWeb]