Rev 4788: Note a memory savings with a special set in http://bazaar.launchpad.net/~jameinel/bzr/2.1-static-tuple-chk-map
John Arbash Meinel
john at arbash-meinel.com
Fri Oct 23 19:46:15 BST 2009
At http://bazaar.launchpad.net/~jameinel/bzr/2.1-static-tuple-chk-map
------------------------------------------------------------
revno: 4788
revision-id: john at arbash-meinel.com-20091023184603-ngn0aakdwx38ybam
parent: john at arbash-meinel.com-20091023172745-71kq3uh3t0m9fgah
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.1-static-tuple-chk-map
timestamp: Fri 2009-10-23 13:46:03 -0500
message:
Note a memory savings with a special set
-------------- next part --------------
=== modified file 'bzrlib/chk_map.py'
--- a/bzrlib/chk_map.py 2009-10-23 17:27:45 +0000
+++ b/bzrlib/chk_map.py 2009-10-23 18:46:03 +0000
@@ -1629,6 +1629,9 @@
refs = refs.difference(all_old_chks)
processed_new_refs.update(refs)
while refs:
+ # TODO: Using a SimpleSet for self._processed_new_refs and
+ # saved as much as 10MB of peak memory. However, it requires
+ # implementing a non-pyrex version.
next_refs = set()
next_refs_update = next_refs.update
# Inlining _read_nodes_from_store improves 'bzr branch bzr.dev'
More information about the bazaar-commits
mailing list