How Google is Making Chrome Faster and Smoother

Google this week announced changes to Chrome that will help the browser run faster and smoother. This is thanks to a change to the way Chrome compiles JavaScript.

Chrome’s V8 JavaScript engine compiles JavaScript in the main thread, which could in turn affect the performance of the JavaScript app, slowing things down or causing stuttering. The latest Chrome Beta hopes to eliminate that by offloading the JavaScript compilation to a background thread.

V8 defers compilation of JavaScript functions until right before they’re executed for the first time. It’s a fast process, but it doesn’t place any focus on optimizing the code. If a piece of code is executed often will get compiled a second time by an optimizing compiler. This compiler employs advanced optimization techniques, which takes more time than the first compilation, but delivers faster code.

Up until now, V8 alternated between compiling optimized JavaScrip code and executing it. This new version of Chrome Beta introduces concurrent compilation, which means compilation and execution happen at the same time, with V8 optimizing large pieces of code in a background thread.  

Concurrent compilation is, right now, only available with Chrome Beta but should hopefully trickle down to the full version of Chrome in the not too distant future and will ultimately contribute towards reducing latency in Chrome.

Follow Jane McEntegart @JaneMcEntegart. Follow us @tomshardware, on Facebook and on Google+.

Create a new thread in the US News comments forum about this subject
This thread is closed for comments
25 comments
Comment from the forums
    Your comment
    Top Comments
  • burkhartmj
    Anonymous said:
    Be a good citezen and install Chrome. Make it as easy as possible for the NSA to ensure you are not a threat to our national security.


    Stop being a fear-mongering troll.
    15
  • irish_adam
    Quote:
    Be a good citezen and install Chrome. Make it as easy as possible for the NSA to ensure you are not a threat to our national security.
    The ignorance is strong in this one. Google complies with the same rules as every other browser and search company operating in the US. You think you are safer on firefox or IE? if you do then you are a fool
    11
  • Other Comments
  • Grandmastersexsay
    Be a good citezen and install Chrome. Make it as easy as possible for the NSA to ensure you are not a threat to our national security.
    -11
  • blppt
    This is actually a huge bonus for me---before, Chrome would get slightly annoying with the (brief) spinning wheel for certain JS and flash-heavy website loading, but with the latest beta, its completely gone. Well done, Google.
    5
  • burkhartmj
    Anonymous said:
    Be a good citezen and install Chrome. Make it as easy as possible for the NSA to ensure you are not a threat to our national security.


    Stop being a fear-mongering troll.
    15