tag:blogger.com,1999:blog-581197352358126527.post3229077465574945009..comments2024-03-28T00:32:25.959-07:00Comments on japh(r) by Chris Strom: Dartium Snapshotting in Action (sort of)Anonymoushttp://www.blogger.com/profile/00135361916531185929noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-581197352358126527.post-29478799011862490862012-05-31T08:51:41.786-07:002012-05-31T08:51:41.786-07:00Thanks, and thanks for getting me started a month ...Thanks, and thanks for getting me started a month back in the mailing list :)<br /><br />I enabled isSnapshottingEnabled the day before: http://japhr.blogspot.com/2012/05/cant-snapshot-dart.html<br /><br />The results in this post were with that `true` and did not seem to persist between browser restarts.<br /><br />Is there an actual .vm image file written somewhere or does it just get merged into the cache database? Are there any other behaviors that I might investigate with snapshotting enabled?Anonymoushttps://www.blogger.com/profile/00135361916531185929noreply@blogger.comtag:blogger.com,1999:blog-581197352358126527.post-17973789054686235812012-05-31T08:15:35.915-07:002012-05-31T08:15:35.915-07:00Chris,
to enable persistent snapshots, you need s...Chris,<br /><br />to enable persistent snapshots, you need slightly tweak the code: in the very beginning of DartApplicationLoader.cpp file there is a function isSnapshottingEnabled which always return false. Change it to true, pass the flag and you should be set.<br /><br />We don't enable it by default due to various concerns. For example, Dart application consists of many parts. How we should treat the case when different files have different caching policies?Anonymoushttps://www.blogger.com/profile/12215016208295463302noreply@blogger.com