Rev 3827: use the bad caching for xml8 deserialization. in http://bzr.arbash-meinel.com/branches/bzr/brisbane/generic_fetch_ordering

John Arbash Meinel john at arbash-meinel.com
Wed Feb 18 19:07:38 GMT 2009


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

------------------------------------------------------------
revno: 3827
revision-id: john at arbash-meinel.com-20090218190726-oozb84xy6h8ok28z
parent: john at arbash-meinel.com-20090218190659-bn7g7aaqqzn72q22
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: generic_fetch_ordering
timestamp: Wed 2009-02-18 13:07:26 -0600
message:
  use the bad caching for xml8 deserialization.
-------------- next part --------------
=== modified file 'bzrlib/xml8.py'
--- a/bzrlib/xml8.py	2008-12-13 03:19:40 +0000
+++ b/bzrlib/xml8.py	2009-02-18 19:07:26 +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