/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: John Arbash Meinel
  • Date: 2009-10-20 20:29:11 UTC
  • mto: This revision was merged to the branch mainline in revision 4760.
  • Revision ID: john@arbash-meinel.com-20091020202911-3j1up7554sdwym3u
interning key values in the CHKInventory.deserialize()

This saves 190MB => 180MB.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1918
1918
                raise errors.BzrError('Duplicate key in inventory: %r\n%r'
1919
1919
                                      % (key, bytes))
1920
1920
            info[key] = value
1921
 
        revision_id = info['revision_id']
1922
 
        root_id = info['root_id']
1923
 
        search_key_name = info.get('search_key_name', 'plain')
1924
 
        parent_id_basename_to_file_id = info.get(
1925
 
            'parent_id_basename_to_file_id', None)
 
1921
        revision_id = intern(info['revision_id'])
 
1922
        root_id = intern(info['root_id'])
 
1923
        search_key_name = intern(info.get('search_key_name', 'plain'))
 
1924
        parent_id_basename_to_file_id = intern(info.get(
 
1925
            'parent_id_basename_to_file_id', None))
1926
1926
        id_to_entry = info['id_to_entry']
1927
1927
 
1928
1928
        result = CHKInventory(search_key_name)