Rev 4503: More debugging. It seems NEWS and builtins are about 1.5 children on average. in http://bazaar.launchpad.net/~jameinel/bzr/1.17-rework-annotate

John Arbash Meinel john at arbash-meinel.com
Wed Jun 24 00:28:44 BST 2009


At http://bazaar.launchpad.net/~jameinel/bzr/1.17-rework-annotate

------------------------------------------------------------
revno: 4503
revision-id: john at arbash-meinel.com-20090623232838-82pc077t4ds28fft
parent: john at arbash-meinel.com-20090623222135-ldbtuclia1zfmvuy
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 1.17-rework-annotate
timestamp: Tue 2009-06-23 18:28:38 -0500
message:
  More debugging. It seems NEWS and builtins are about 1.5 children on average.
-------------- next part --------------
=== modified file 'bzrlib/_annotator_pyx.pyx'
--- a/bzrlib/_annotator_pyx.pyx	2009-06-23 22:21:35 +0000
+++ b/bzrlib/_annotator_pyx.pyx	2009-06-23 23:28:38 +0000
@@ -210,6 +210,7 @@
                     self._num_needed_children[parent_key] += 1
                 else:
                     self._num_needed_children[parent_key] = 1
+                _update_counter('num children', 1)
         self._parent_map.update(parent_map)
         # _heads_provider does some graph caching, so it is only valid while
         # self._parent_map hasn't changed

=== modified file 'bzrlib/knit.py'
--- a/bzrlib/knit.py	2009-06-23 22:21:35 +0000
+++ b/bzrlib/knit.py	2009-06-23 23:28:38 +0000
@@ -3404,6 +3404,7 @@
                             self._num_needed_children[parent_key] += 1
                         else:
                             self._num_needed_children[parent_key] = 1
+                        annotate.update_counter('num children', 1)
                 if compression_parent:
                     if compression_parent in self._num_compression_children:
                         self._num_compression_children[compression_parent] += 1
@@ -3415,6 +3416,7 @@
                 raise ValueError('i dont handle ghosts')
         # Generally we will want to read the records in reverse order, because
         # we find the parent nodes after the children
+        annotate.update_counter('num revs', len(records))
         records.reverse()
         return records
 



More information about the bazaar-commits mailing list