From 64e9940fae692b03f03b7de8a1a0ec3dc5b4f8e9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 8 Apr 2008 05:42:01 +0000 Subject: 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 --- bin/repoman | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/repoman') 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"] -- cgit v1.2.3-1-g7c22