Is your feature request related to a problem? Please describe.
The current execution of flutter pub run import_sorter:main has a slow start due to the Dart VM initialisation. While it is acceptable if it is ran infrequently (like as a GIT commit hook for example), it is a lot more critical when running frequently (like every time a file is saved for example).
Describe the solution you'd like
Give users guidelines to use the natively compiled version of the library rather that its Dart version
OR find a way to distribute the compiled versions
Describe alternatives you've considered
I have tested the execution time of this library for three different versions:
Is your feature request related to a problem? Please describe. The current execution of
flutter pub run import_sorter:main
has a slow start due to the Dart VM initialisation. While it is acceptable if it is ran infrequently (like as a GIT commit hook for example), it is a lot more critical when running frequently (like every time a file is saved for example).Describe the solution you'd like
Describe alternatives you've considered I have tested the execution time of this library for three different versions:
Results:
Additional context The benefits of running a compiled version are also explained in https://dart.dev/tutorials/server/get-started#6-compile-for-production.
This is what I've done to get a nice experience using this lib:
PATH