depgraph: don't clear vardbapi cache in _load_vdb
authorZac Medico <zmedico@gentoo.org>
Tue, 10 May 2011 05:11:33 +0000 (22:11 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 10 May 2011 05:11:33 +0000 (22:11 -0700)
Most of the memory is probably held on the heap by the installed
package instances anyway, and the cache is useful for being inherited
by subprocess in MergeProcess.

pym/_emerge/depgraph.py

index 7b1940b5a38f7593d2e4d729a89d35e22d101b8c..22a603e81f317ae4ffa41b05b97514ccacc6ec84 100644 (file)
@@ -551,14 +551,6 @@ class depgraph(object):
                                        vardb.aux_get(pkg.cpv, [])
                                        fakedb.cpv_inject(pkg)
 
-                               # Now that the vardb state is cached in our FakeVartree,
-                               # we won't be needing the real vartree cache for awhile.
-                               # To make some room on the heap, clear the vardbapi
-                               # caches.
-                               self._frozen_config._trees_orig[myroot
-                                       ]["vartree"].dbapi._clear_cache()
-                               gc.collect()
-
                self._dynamic_config._vdb_loaded = True
 
        def _spinner_update(self):