From e15d4759d3a199f16ce01bc974a7ceb9adfd0dc2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 7 Apr 2008 23:47:17 +0000 Subject: [PATCH] For repoman, only cache the metadata necessary for visibility checks in order to reduce memory consumption. svn path=/main/trunk/; revision=9743 --- bin/repoman | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/repoman b/bin/repoman index 15f6b7d06..ad487fd8b 100755 --- a/bin/repoman +++ b/bin/repoman @@ -470,6 +470,11 @@ trees = portage.create_trees() trees["/"]["porttree"].settings = repoman_settings portdb = trees["/"]["porttree"].dbapi portdb.mysettings = repoman_settings +# We really only need to cache the metadata that's necessary for visibility +# filtering. Anything else can be discarded to reduce memory consumption. +for k in ("DEPEND", "IUSE", "LICENCE", "PDEPEND", + "PROVIDE", "RDEPEND", "RESTRICT", "repository"): + portdb._aux_cache_keys.discard(k) # dep_zapdeps looks at the vardbapi, but it shouldn't for repoman. del trees["/"]["vartree"] -- 2.26.2