diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2020-01-28 21:41:35 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2020-01-29 21:15:58 -0800 |
commit | 3519a176245d9cc6b5f6802aad3b1bb1c2d6ec47 (patch) | |
tree | ae6c2141ca1a620dd7d762c50331f5e90e300063 /NOTICE | |
parent | a2f8a2321d94a89ad1cb13e0dccca20e5f5aa325 (diff) | |
download | spack-3519a176245d9cc6b5f6802aad3b1bb1c2d6ec47.tar.gz spack-3519a176245d9cc6b5f6802aad3b1bb1c2d6ec47.tar.bz2 spack-3519a176245d9cc6b5f6802aad3b1bb1c2d6ec47.tar.xz spack-3519a176245d9cc6b5f6802aad3b1bb1c2d6ec47.zip |
specs: avoid traversing specs when parsing
The Spec parser currently calls `spec.traverse()` after every parse, in
order to set the platform if it's not set. We don't need to do a full
traverse -- we can just check the platforrm as new specs are parsed.
This takes about a second off the time required to import all packages in
Spack (from 8s to 7s).
- [x] simplify platform-setting logic in `SpecParser`.
Diffstat (limited to 'NOTICE')
0 files changed, 0 insertions, 0 deletions