January 25, 2021
Hot Topics:

Chrome 'Crankshaft' JavaScript Optimizer Is Faster

  • By Developer.com Staff

News about the latest Google Chrome version 8 has gotten a lot of press, but in all of the coverage, another Google announcement has gone somewhat unnoticed: Crankshaft.

Crankshaft is a new compilation infrastructure for Chrome's V8 JavaScript engine, and it's fast.

"By using aggressive optimizations," explained Google software engineers Kevin Millikin and Florian Schneider, "Crankshaft dramatically improves the performance of compute-intensive JavaScript applications -- often by more than a factor of two!"

The basic idea is to optimize heavily used JavaScript and to not bother with code that is not. So Crankshaft analyzes JavaScript and tries to determine what to optimize and what to leave alone. It's called "adaptive compilation." To do all of this, Crankshaft has four main components: a base compiler, a runtime profiler, an optimizing compiler and deoptimization support.

"V8 with Crankshaft for the 32-bit Intel architecture is available today in the V8 bleeding edge repository and in canary builds of Chrome," the blog post said. "Work on the ARM and 64-bit ports has started."

View Article

Originally published on https://www.developer.com.

This article was originally published on December 9, 2010

Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Thanks for your registration, follow us on our social networks to keep up-to-date