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 it:
The first time you launch a new version of glue (e.g. a new standalone app or glue within a new virtual environment) it is quite slow. On my Mac, the application icon appears in the dock, but that is the only thing that happens for ~15-20 seconds. After that, the splash/loading screen appears for a second, and then the application is open. Subsequent launches are very quick, but this initial introduction to glue to be off-putting to new users who may think glue is (a) not working or (b) will always be slow.
Describe the solution you'd like:
We should understand why glue is slow to launch the first time, and see if we can ameliorate the problem. If it is something we cannot reduce, we should see if it is at least possible to put up the splash screen before whatever the slow step is.
The text was updated successfully, but these errors were encountered:
You can also see import.log here: https://gist.github.com/astrofrog/c12262e3096cceb433d3012c814e1210
Note that this is only for the first import (which is relevant for this issue) - subsequent imports are a lot faster, so if you want to profile again you have to make a new venv.
The first import takes >12s in this case! PyQtWebEngine is a clear culprit, but I think there are in general a LOT of dependencies that get imported at start time and contribute to this.
I wonder if we should go though and figure out if we can delay some of the imports at least until the splash screen is showing, or even until the functionality is actually used. For instance, there's no reason we should be importing scipy or casa-formats-io or pandas when the application is starting up. We should be delaying many of the imports
I think there will be other things that cause the first start of the application to be slow when downloading a new DMG, but if we can at least make the import part faster then that might make a big enough difference to make the delay bearable.
Is your feature request related to a problem? Please describe it:
The first time you launch a new version of glue (e.g. a new standalone app or glue within a new virtual environment) it is quite slow. On my Mac, the application icon appears in the dock, but that is the only thing that happens for ~15-20 seconds. After that, the splash/loading screen appears for a second, and then the application is open. Subsequent launches are very quick, but this initial introduction to glue to be off-putting to new users who may think glue is (a) not working or (b) will always be slow.
Describe the solution you'd like:
We should understand why glue is slow to launch the first time, and see if we can ameliorate the problem. If it is something we cannot reduce, we should see if it is at least possible to put up the splash screen before whatever the slow step is.
The text was updated successfully, but these errors were encountered: