diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2018-03-24 07:39:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-24 07:39:10 -0700 |
commit | af0f94a1af62aa29ed5b91eeaeccba519d6ee8c4 (patch) | |
tree | 8f97d509d4eb876442b54cd91d4c7655923321ec /bin | |
parent | 998b5a6482e77cc17b1fca2e248d2bd3d8bf3a60 (diff) | |
download | spack-af0f94a1af62aa29ed5b91eeaeccba519d6ee8c4.tar.gz spack-af0f94a1af62aa29ed5b91eeaeccba519d6ee8c4.tar.bz2 spack-af0f94a1af62aa29ed5b91eeaeccba519d6ee8c4.tar.xz spack-af0f94a1af62aa29ed5b91eeaeccba519d6ee8c4.zip |
Avoid stat-ing all packages at startup. (#7587)
- FastPackageChecker was being called at startup every time Spack runs,
which takes a long time on networked filesystems. Startup was taking
5-7 seconds due to this call.
- The checker was intended to avaoid importing all packages (which is
really expensive) when all it needs is to stat them. So it's only
"fast" for parts of the code that *need* it.
- This commit makes repositories instantiate the checker lazily, so it's
only constructed when needed.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions