From: Zac Medico Date: Thu, 28 Jun 2007 01:48:17 +0000 (-0000) Subject: Discard "nomerge" nodes to speed up depgraph.altlist() since those nodes aren't used... X-Git-Tag: v2.2_pre1~1129 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ce33c96ed47701fcce759e16b2e95f81f6b70517;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. svn path=/main/trunk/; revision=7067 --- diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index fd6643dea..838d1fbb6 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -2054,6 +2054,9 @@ class depgraph(object): 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=[]