diff options
author | Tim Harder <radhermit@gmail.com> | 2015-02-15 16:52:07 -0800 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2015-02-15 22:10:11 -0800 |
commit | 0ef3583e5f7e858b170d4d6e4a03b9f55067be7a (patch) | |
tree | d4c63d4b2cc9215220315345c580db8d9f62befb | |
parent | tests: add test for the iuse_stripped method (diff) | |
download | pkgcore-0ef3583e5f7e858b170d4d6e4a03b9f55067be7a.tar.gz pkgcore-0ef3583e5f7e858b170d4d6e4a03b9f55067be7a.tar.bz2 pkgcore-0ef3583e5f7e858b170d4d6e4a03b9f55067be7a.zip |
profiles: don't cache rarely used values retrieved directly from make.defaults
The related default_env dict is already cached and these values aren't
processed at all so access times should be quick enough without caching.
-rw-r--r-- | pkgcore/ebuild/profiles.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgcore/ebuild/profiles.py b/pkgcore/ebuild/profiles.py index 035aaede..5ab611d3 100644 --- a/pkgcore/ebuild/profiles.py +++ b/pkgcore/ebuild/profiles.py @@ -523,37 +523,37 @@ class ProfileStack(object): d[incremental] = tuple(v) return ImmutableDict(d.iteritems()) - @klass.jit_attr + @property def profile_only_variables(self): if "PROFILE_ONLY_VARIABLES" in const.incrementals: return frozenset(self.default_env.get("PROFILE_ONLY_VARIABLES", ())) return frozenset(self.default_env.get("PROFILE_ONLY_VARIABLES", "").split()) - @klass.jit_attr + @property def use_expand(self): if "USE_EXPAND" in const.incrementals: return frozenset(self.default_env.get("USE_EXPAND", ())) return frozenset(self.default_env.get("USE_EXPAND", "").split()) - @klass.jit_attr + @property def use_expand_hidden(self): if "USE_EXPAND_HIDDEN" in const.incrementals: return frozenset(self.default_env.get("USE_EXPAND_HIDDEN", ())) return frozenset(self.default_env.get("USE_EXPAND_HIDDEN", "").split()) - @klass.jit_attr + @property def iuse_implicit(self): if "IUSE_IMPLICIT" in const.incrementals: return frozenset(self.default_env.get("IUSE_IMPLICIT", ())) return frozenset(self.default_env.get("IUSE_IMPLICIT", "").split()) - @klass.jit_attr + @property def use_expand_implicit(self): if "USE_EXPAND_IMPLICIT" in const.incrementals: return frozenset(self.default_env.get("USE_EXPAND_IMPLICIT", ())) return frozenset(self.default_env.get("USE_EXPAND_IMPLICIT", "").split()) - @klass.jit_attr + @property def use_expand_unprefixed(self): if "USE_EXPAND_UNPREFIXED" in const.incrementals: return frozenset(self.default_env.get("USE_EXPAND_UNPREFIXED", ())) |