From 540715f6f86b6bb6d39697222565bea7d3939291 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 10 Oct 2007 08:07:00 +0000 Subject: [PATCH] Comment about avoiding expensive metadata pulls in depgraph.select_dep(). svn path=/main/trunk/; revision=8038 --- pym/emerge/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 7f4159ea9..123e8683c 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -2065,6 +2065,12 @@ class depgraph(object): old_use, iuses, now_use, cur_iuse): break + # Metadata accessed above is cached internally by + # each db in order to optimize visibility checks. + # Now that all possible checks visibility checks + # are complete, it's time to pull the rest of the + # metadata (including *DEPEND). This part is more + # expensive, so avoid it whenever possible. metadata.update(izip(self._mydbapi_keys, db.aux_get(cpv, self._mydbapi_keys))) if not built: -- 2.26.2