From: Zac Medico Date: Tue, 8 Apr 2008 05:42:01 +0000 (-0000) Subject: For repoman, only cache the metadata necessary for visibility X-Git-Tag: v2.1.5~234 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=64e9940fae692b03f03b7de8a1a0ec3dc5b4f8e9;p=portage.git For repoman, only cache the metadata necessary for visibility checks in order to reduce memory consumption. (trunk r9743) svn path=/main/branches/2.1.2/; revision=9753 --- diff --git a/bin/repoman b/bin/repoman index 70c1fad8d..5720bf112 100755 --- a/bin/repoman +++ b/bin/repoman @@ -694,6 +694,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"]