diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2019-12-29 00:12:14 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-12-30 13:01:31 -0800 |
commit | 8e8235043d6f4605f338761233178404840baae5 (patch) | |
tree | 48f3fc1772a7ef6b89bcc58690713f44bb747494 /COPYRIGHT | |
parent | 0699f8ac9d4d599fa7709cdb694467918a612e49 (diff) | |
download | spack-8e8235043d6f4605f338761233178404840baae5.tar.gz spack-8e8235043d6f4605f338761233178404840baae5.tar.bz2 spack-8e8235043d6f4605f338761233178404840baae5.tar.xz spack-8e8235043d6f4605f338761233178404840baae5.zip |
package_prefs: move class-level cache to PackagePref instance
`PackagePrefs` has had a class-level cache of data from `packages.yaml` for
a long time, but it complicates testing and leads to subtle errors,
especially now that we frequently manipulate custom config scopes and
environments.
Moving the cache to instance-level doesn't slow down concretization or
the test suite, and it just caches for the life of a `PackagePrefs`
instance (i.e., for a single cocncretization) so we don't need to worry
about global state anymore.
- [x] Remove class-level caches from `PackagePrefs`
- [x] Add a cached _spec_order object on each `PackagePrefs` instance
- [x] Remove all calls to `PackagePrefs.clear_caches()`
Diffstat (limited to 'COPYRIGHT')
0 files changed, 0 insertions, 0 deletions