From: Zac Medico Date: Tue, 10 May 2011 05:11:33 +0000 (-0700) Subject: depgraph: don't clear vardbapi cache in _load_vdb X-Git-Tag: v2.1.9.49~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e4e1a5dba0589b0bde34abbe5f362d8509192078;p=portage.git depgraph: don't clear vardbapi cache in _load_vdb 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. --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index bd726318b..30085a57f 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -357,14 +357,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):