From 46c29108ea76d1ca336042be99bbe11e8e5061b8 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 26 Feb 2009 11:53:50 +0100 Subject: 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 --- apt/cache.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apt/cache.py') 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: -- cgit v1.2.3