You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
I've set it up with the following settings:
Now every time I save a file in my IDE, the imports are organised instantaneously! This makes it a lot more enjoyable.
The text was updated successfully, but these errors were encountered: