Closed briantoby closed 3 weeks ago
It currently takes ~7 sec for GSAS-II to start on my M3 Mac (I think this goes up by a second or two when the computer has been running for a few weeks without a reboot.) There are two major areas that slow down the startup:
g2repo.iter_commits('HEAD')
) which could be replaced with something faster (tag,vers,gnum = g2repo.git.describe('--tags')
). However, it is not clear that this is even needed, since the git tag number can be looked up from file git_version.py. The code will be changed to do that and use git describe
only when the git_version.py file is not found. This change alone halves the startup time.Menu bars are now created when needed in d0cd2d90. The startup time for GSAS-II is now ~1.5 sec on my computer.
Still catching some minor bugs where code accesses menu bar items that may not have been created (in https://github.com/AdvancedPhotonSource/GSAS-II/commit/3638a3a15c5a65e66a6c11c1eef5a90c341631ea). Hope there are not too many more...
It seems that GSAS-II is taking more time to start than it used to need. Where are the delays?