diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-08-15 09:50:33 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-08-15 09:50:33 -0400 |
commit | 5cbc6c70851acaa617a581c977aa0a55e2391ef7 (patch) | |
tree | 172034b0c1794d034eb9082e97443095de421b65 | |
parent | 06c0f3f41296ab29b626b3c7970f7bfa9e159439 (diff) | |
download | external_python_setuptools-5.7.tar.gz external_python_setuptools-5.7.tar.bz2 external_python_setuptools-5.7.zip |
Use MemoizedZipManifests for all operations. Fixes #240.5.7
-rw-r--r-- | CHANGES.txt | 11 | ||||
-rw-r--r-- | pkg_resources.py | 6 |
2 files changed, 12 insertions, 5 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 3674383c..83b05bbe 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -3,6 +3,17 @@ CHANGES ======= --- +5.7 +--- + +* Issue #240: Based on real-world performance measures against 5.4, zip + manifests are now cached in all circumstances. The + ``PKG_RESOURCES_CACHE_ZIP_MANIFESTS`` environment variable is no longer + relevant. The observed "memory increase" referenced in the 5.4 release + notes and detailed in Issue #154 was likely not an increase over the status + quo, but rather only an increase over not storing the zip info at all. + +--- 5.6 --- diff --git a/pkg_resources.py b/pkg_resources.py index 11debf65..ee2c553b 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -1605,11 +1605,7 @@ class ZipProvider(EggProvider): """Resource support for zips and eggs""" eagers = None - _zip_manifests = ( - MemoizedZipManifests() - if os.environ.get('PKG_RESOURCES_CACHE_ZIP_MANIFESTS') else - ZipManifests() - ) + _zip_manifests = MemoizedZipManifests() def __init__(self, module): EggProvider.__init__(self, module) |