diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2019-12-21 23:45:47 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-12-23 18:36:56 -0800 |
commit | d7f2a32887e8c05707ca3d9139a0a850d264222b (patch) | |
tree | d1090802d38a378e320bf67a2f51ca706a6e8cb8 /.gitattributes | |
parent | 78b84e4adecc18f8e92844b11a627c54ac2ef7c8 (diff) | |
download | spack-d7f2a32887e8c05707ca3d9139a0a850d264222b.tar.gz spack-d7f2a32887e8c05707ca3d9139a0a850d264222b.tar.bz2 spack-d7f2a32887e8c05707ca3d9139a0a850d264222b.tar.xz spack-d7f2a32887e8c05707ca3d9139a0a850d264222b.zip |
performance: dont' read `spec.yaml` files twice in view regeneration
`ViewDescriptor.regenerate()` calls `get_all_specs()`, which reads
`spec.yaml` files, which is slow. It's fine to do this once, but
`view.remove_specs()` *also* calls it immediately afterwards.
- [x] Pass the result of `get_all_specs()` as an optional parameter to
`view.remove_specs()` to avoid reading `spec.yaml` files twice.
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions