medusa
medusa copied to clipboard
Use Snapshots
If you want speed, you should use snapshots to store pre-parsed Dart Code. It's much more efficient, but it does take slightly more space to store it. https://www.dartlang.org/articles/snapshots/
Interesting.... definitely will boost startup times too. Since the snapshot files will be bigger storing them as a BLOB within the SQLite db cache instead of the generated dart code which is being done now should make it work. Only concern is the BLOB I/O performance for SQLite might be a blocker. But fingers crossed. Working on it.
Awesome!
@rahul080327 What's the status?
Didn't get a chance to give it proper time. Will start today hopefully.
@kaendfinger Is it possible to create a VM snapshot from code directly without writing it to a file first? For example pass the generated Dart code as a command line param or something similar as compared to the "dart [--package_root=
@rahul080327 As of right now, you must write to a file.