onepub-dev / dcli

An extensive library and tooling for building console/cli applications and scripts using the Dart programming language.
236 stars 26 forks source link

Generate dill files for faster startup. #189

Closed bsutton closed 3 months ago

bsutton commented 2 years ago

When dcli launches a script it is rather slow. If we compiled the script to a dill file on first run then it would run much faster after that. Only issue is that we need to be able to efficiently detect if a package src changes so we know when to re-compile the dill. Also need to recompile if the SDK version changes.

https://github.com/dart-lang/pub/issues/1683

bsutton commented 3 months ago

doesn't look like this will be possible.