Rev 4393: The slowdown was that _to_cleanup wasn't getting reset. in http://bazaar.launchpad.net/~jameinel/bzr/1.16-better_heads

John Arbash Meinel john at arbash-meinel.com
Wed Jun 10 23:08:49 BST 2009


At http://bazaar.launchpad.net/~jameinel/bzr/1.16-better_heads

------------------------------------------------------------
revno: 4393
revision-id: john at arbash-meinel.com-20090610220839-wmp8pe3qqra3weq6
parent: john at arbash-meinel.com-20090610220339-akbmevv1b0236upf
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 1.16-better_heads
timestamp: Wed 2009-06-10 17:08:39 -0500
message:
  The slowdown was that _to_cleanup wasn't getting reset.
  
  The other slow part of the pyrex code was that we weren't properly skipping
  to linear_dominator. Now .pyx is 2x faster than .py.
-------------- next part --------------
=== modified file 'bzrlib/_known_graph_pyx.pyx'
--- a/bzrlib/_known_graph_pyx.pyx	2009-06-10 22:03:39 +0000
+++ b/bzrlib/_known_graph_pyx.pyx	2009-06-10 22:08:39 +0000
@@ -498,4 +498,5 @@
                             break
         for node in self._to_cleanup:
             node.ancestor_of = None
+        self._to_cleanup = []
         return PyFrozenSet_New(candidate_nodes)



More information about the bazaar-commits mailing list