diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2019-12-21 23:45:47 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-12-23 23:18:47 -0800 |
commit | e22d3250dd78eac769906620da55594690fbbca7 (patch) | |
tree | 00e394b6dca1e17a4eca8dd9699534fb8e3b61db /share | |
parent | e3939b0c72b2c6bc5f41e9f33de3c04cf4785c05 (diff) | |
download | spack-e22d3250dd78eac769906620da55594690fbbca7.tar.gz spack-e22d3250dd78eac769906620da55594690fbbca7.tar.bz2 spack-e22d3250dd78eac769906620da55594690fbbca7.tar.xz spack-e22d3250dd78eac769906620da55594690fbbca7.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 'share')
0 files changed, 0 insertions, 0 deletions