Discard "nomerge" nodes to speed up depgraph.altlist() since those nodes aren't used...
authorZac Medico <zmedico@gentoo.org>
Thu, 28 Jun 2007 01:48:54 +0000 (01:48 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 28 Jun 2007 01:48:54 +0000 (01:48 -0000)
svn path=/main/branches/2.1.2/; revision=7068

bin/emerge

index 039e3e3ad8866737eda707079263be937eba68d1..4cc1023375c1b7bd106f9e10cce0f8b63517228f 100755 (executable)
@@ -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=[]