Wednesday, February 13, 2013

Generate a Snapshot for Faster App Startup

A new article published to DartLang.org shows you how to generate your own Dart VM snapshot, which can help your app start quicker.


A snapshot is a "sequence of bytes that represents a serialized form of one or more Dart objects." The VM can load a snapshot more efficiently than raw source code. This is especially important for mobile devices, where every CPU cycle impacts the battery.

Dart VM engineer Siva Annamalai writes about the different kinds of snapshots, what they are used for, and how you can generate and load them.

Your feedback really counts. Please join the conversation at the Dart mailing list, and ask questions at Stack Overflow.

(Photo credit: http://www.flickr.com/photos/purplemattfish/3020016417)