diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-02-26 11:53:50 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-02-26 11:53:50 +0100 |
| commit | 46c29108ea76d1ca336042be99bbe11e8e5061b8 (patch) | |
| tree | c7b9b68530e7b1c72b15e89e454983cbd4b3f2a3 /apt/cache.py | |
| parent | 19bd571a866fbe66d1bf024d458cfff8193c3f4d (diff) | |
| download | python-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.py | 4 |
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: |
