Discard "nomerge" nodes to speed up depgraph.altlist() since those nodes aren't used...
authorZac Medico <zmedico@gentoo.org>
Mon, 30 Jul 2007 06:31:54 +0000 (06:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 30 Jul 2007 06:31:54 +0000 (06:31 -0000)
svn path=/main/branches/2.1.2.9/; revision=7497

bin/emerge

index 02ee3ea258695624020878d3e69ff72cd767a2bb..201c44db610569b782b4b758cc756975356873ce 100755 (executable)
@@ -2008,6 +2008,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=[]