summaryrefslogtreecommitdiff
path: root/apt/cache.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-02-26 11:53:50 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2009-02-26 11:53:50 +0100
commit46c29108ea76d1ca336042be99bbe11e8e5061b8 (patch)
treec7b9b68530e7b1c72b15e89e454983cbd4b3f2a3 /apt/cache.py
parent19bd571a866fbe66d1bf024d458cfff8193c3f4d (diff)
downloadpython-apt-46c29108ea76d1ca336042be99bbe11e8e5061b8.tar.gz
avoid duplicated internal references of the Package object for _cache, _depcache, _records, _list - they add up to ~10mb for the full cache on my test system and all information is available via Package._pcache
Diffstat (limited to 'apt/cache.py')
-rw-r--r--apt/cache.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/apt/cache.py b/apt/cache.py
index 01c12c94..cd9c5fe9 100644
--- a/apt/cache.py
+++ b/apt/cache.py
@@ -90,9 +90,7 @@ class Cache(object):
last=i
# drop stuff with no versions (cruft)
if len(pkg.VersionList) > 0:
- self._dict[pkg.Name] = Package(self._cache, self._depcache,
- self._records, self._list,
- self, pkg)
+ self._dict[pkg.Name] = Package(self, pkg)
i += 1
if progress is not None: