From: Zac Medico Date: Thu, 28 Jun 2007 01:48:54 +0000 (-0000) Subject: Discard "nomerge" nodes to speed up depgraph.altlist() since those nodes aren't used... X-Git-Tag: v2.1.3~127 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=864a6ef93103956c0bd9a3f12aeaf84bc86f391d;p=portage.git Discard "nomerge" nodes to speed up depgraph.altlist() since those nodes aren't used and the --tree algorithm does a good job of regenerating them when appropriate. (trunk r7067) svn path=/main/branches/2.1.2/; revision=7068 --- diff --git a/bin/emerge b/bin/emerge index 039e3e3ad..4cc102337 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2023,6 +2023,9 @@ class depgraph: self._altlist_cache[reversed] = retlist[:] return retlist mygraph=self.digraph.copy() + for node in mygraph.order[:]: + if node[-1] == "nomerge": + mygraph.remove(node) self._merge_order_bias(mygraph) myblockers = self.blocker_digraph.copy() retlist=[]