Rev 3806: Bring back the xml non-copy caching. in http://bzr.arbash-meinel.com/branches/bzr/brisbane/debug_hacks

John Arbash Meinel john at arbash-meinel.com
Tue Dec 23 17:09:34 GMT 2008


At http://bzr.arbash-meinel.com/branches/bzr/brisbane/debug_hacks

------------------------------------------------------------
revno: 3806
revision-id: john at arbash-meinel.com-20081223170918-5y3wgrpl1qp9j86y
parent: john at arbash-meinel.com-20081223170721-8ezsrdfl23ugptzm
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: debug_hacks
timestamp: Tue 2008-12-23 11:09:18 -0600
message:
  Bring back the xml non-copy caching.
-------------- next part --------------
=== modified file 'bzrlib/xml8.py'
--- a/bzrlib/xml8.py	2008-12-13 03:19:40 +0000
+++ b/bzrlib/xml8.py	2008-12-23 17:09:18 +0000
@@ -428,10 +428,10 @@
                 pass
             else:
                 # Only copying directory entries drops us 2.85s => 2.35s
-                # if cached_ie.kind == 'directory':
-                #     return cached_ie.copy()
-                # return cached_ie
-                return cached_ie.copy()
+                if cached_ie.kind == 'directory':
+                    return cached_ie.copy()
+                return cached_ie
+                # return cached_ie.copy()
 
         kind = elt.tag
         if not InventoryEntry.versionable_kind(kind):



More information about the bazaar-commits mailing list