Commit 5cbc6c70 authored by Jason R. Coombs's avatar Jason R. Coombs

Use MemoizedZipManifests for all operations. Fixes #240.

parent 06c0f3f4
......@@ -2,6 +2,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
---
......
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment