Thursday, March 14, 2013

Dart VM Uses More CPU Features for Faster Performance

The Dart VM, a new virtual machine that runs Dart code, can now take advantage of SIMD instruction sets found in common CPUs. This means that Dart apps, when running in the Dart VM, can perform significantly faster for some algorithms. Code written with the new SIMD APIs still compiles to JavaScript, but won't see the same speed boost.

Are you using all of the CPU?

SIMD stands for Single Instruction Multiple Data, and is a set of CPU instructions for computing multiple results in parallel. The Dart SIMD APIs allow you to add, subtract, multiply, and divide four numbers at the same time. SIMD is widely used in games, 3D graphics applications, and more.

John McCutchan, Developer Programs Engineer on Dart, recently landed the changes with help from the Dart VM team. Watch John's talk from SFHTML5, and learn about his background optimizing console games, his journey to the web, and his quest to help web apps use all the CPU. The slides are also available.