Rev 3896: Release inventory xml strings that we've already processed. in http://bzr.arbash-meinel.com/branches/bzr/1.11/xml_cache

John Arbash Meinel john at arbash-meinel.com
Wed Dec 10 23:06:24 GMT 2008


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

------------------------------------------------------------
revno: 3896
revision-id: john at arbash-meinel.com-20081210230600-d84wjysaeu1caoea
parent: john at arbash-meinel.com-20081210230521-t1t4d6yfh8kt6ft8
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_cache
timestamp: Wed 2008-12-10 17:06:00 -0600
message:
  Release inventory xml strings that we've already processed.
  
  This doesn't decrease our peak memory consumption, but at least it decreases it
  a little bit over time.
-------------- next part --------------
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py	2008-12-10 04:34:21 +0000
+++ b/bzrlib/repository.py	2008-12-10 23:06:00 +0000
@@ -1687,7 +1687,7 @@
             else:
                 raise errors.NoSuchRevision(self, record.key)
         for key in keys:
-            yield texts[key], key[-1]
+            yield texts.pop(key), key[-1]
 
     def deserialise_inventory(self, revision_id, xml):
         """Transform the xml into an inventory object. 



More information about the bazaar-commits mailing list