Opera working on faster JavaScript engine

Carakan, intended to be world's fastest JavaScript engine, will be released in as-yet-undetermined version of the Opera browser

Opera is working on a JavaScript engine, called Carakan, which is intended to be the fastest JavaScript engine on the planet, according to Opera.

Carakan (pronounced Tsharakan) is now 2.5 times faster than Futhark, the JavaScript engine in the Opera 10 browser. It could be even faster when ready, the company said. The company plans to release Carakan as soon as possible in an as-yet-undetermined version of the Opera browser.

[ Also read how Mozilla is working to boost JavaScript performance. ]

 Futhark, according to the Opera core developers blog, was developed to minimize code footprint and memory usage rather than to achieve maximum execution speed.

"This has traditionally been a correct trade-off on many of the platforms Opera runs on. The Web is a changing environment, however, and tomorrow's advanced Web applications will require faster ECMAScript execution. So we have now taken on the challenge to once again develop the fastest ECMAScript engine on the market," the blog said.

"The name Carakan -- like the names of Opera's previous ECMAScript engines, Futhark, Linear A, and Linear B -- is the name of a writing system or ''script," the blog said.

With Carakan, Opera is focusing on improvements in three main areas:

-- Register-based bytecode, which requires fewer instructions to be executed and less copying of data.

-- Native code generation based on a static type analysis, to reduce overhead.

-- Automatic object classification, in which each object is assigned a class that collects various information about the object, such as its prototype and the order of names of some or all properties.

"So how fast is Carakan? Using a regular, cross-platform switch dispatch mechanism (without any generated native code) Carakan is currently about two and a half times faster at the SunSpider benchmark than the ECMAScript engine in Presto 2.2 (Opera 10 Alpha)," the blog said.

With Opera ported to many different hardware architectures, this cross-platform improvement is on its own very important, according to the blog.

"The native code generation in Carakan is not yet ready for full-scale testing, but the few individual benchmark tests that it is already compatible with run between five and 50 times faster, so it is looking promising so far," the blog said.

Opera testers and developers have been working on Carakan for the past few months, the company said.

Recommended
Join the discussion
Be the first to comment on this article. Our Commenting Policies