Rev 3531: Intern keys to reduce duplicated memory in GraphIndex parsing. in http://people.ubuntu.com/~robertc/baz2.0/btree-graphindex
Robert Collins
robertc at robertcollins.net
Sun Jul 13 20:47:33 BST 2008
At http://people.ubuntu.com/~robertc/baz2.0/btree-graphindex
------------------------------------------------------------
revno: 3531
revision-id: robertc at robertcollins.net-20080713194725-ovm2j4pvi5vst2zy
parent: pqm at pqm.ubuntu.com-20080707230506-82h5w03vc72dyf1a
committer: Robert Collins <robertc at robertcollins.net>
branch nick: btree-graphindex
timestamp: Mon 2008-07-14 05:47:25 +1000
message:
Intern keys to reduce duplicated memory in GraphIndex parsing.
modified:
bzrlib/index.py index.py-20070712131115-lolkarso50vjr64s-1
=== modified file 'bzrlib/index.py'
--- a/bzrlib/index.py 2008-06-17 09:32:08 +0000
+++ b/bzrlib/index.py 2008-07-13 19:47:25 +0000
@@ -878,7 +878,7 @@
if len(elements) != self._expected_elements:
raise errors.BadIndexData(self)
# keys are tuples
- key = tuple(elements[:self._key_length])
+ key = tuple(intern(element) for element in elements[:self._key_length])
if first_key is None:
first_key = key
absent, references, value = elements[-3:]
More information about the bazaar-commits
mailing list