At http://bzr.arbash-meinel.com/branches/bzr/1.11/xml_cache

------------------------------------------------------------
revno: 3888
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: John Arbash Meinel <[EMAIL PROTECTED]>
branch nick: xml_cache
timestamp: Wed 2008-12-10 11:47:26 -0600
message:
  Add some actual timings, supporting why we use a FIFOCache.
=== modified file 'bzrlib/xml8.py'
--- a/bzrlib/xml8.py    2008-12-10 17:38:20 +0000
+++ b/bzrlib/xml8.py    2008-12-10 17:47:26 +0000
@@ -365,6 +365,13 @@
         file_id = elt_get('file_id')
         revision = elt_get('revision')
         # Check and see if we have already unpacked this exact entry
+        # Some timings for "repo.revision_trees(last_100_bzr_revs)"
+        #   unmodified  4.1s
+        #   using lru   3.5s
+        #   using fifo  2.9s
+        #   lru._cache  2.8s
+        # Note that a cache of 10k nodes is more than sufficient to hold all of
+        # the inventory for the last 100 revs.
         key = (file_id, revision)
         try:
             # We copy it, because some operatations may mutate it

-- 
bazaar-commits mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/bazaar-commits

Reply via email to