~bzr-pqm/bzr/bzr.dev

  • Committer: John Arbash Meinel
  • Date: 2010-08-05 16:27:35 UTC
  • Revision ID: john@arbash-meinel.com-20100805162735-172opvx34sr5gpbl
Find a case where we are wasting a bit of memory.

Specifically the 'build_details' tuple contains a lot of wasted references,
and we hold on to one of these for each record we are fetching.
And for something like 'bzr pack', that is all keys.

For just loading all text build details on my bzr+ repository, With:
locations = b.repository.texts._index.get_build_details(b.repository.texts.keys())
This drops the memory consumption from:
WorkingSize   77604KiB
 to
WorkingSize   64640KiB

Or around 10.6MB. I worked it out to a savings of about 80 bytes/record
on data that can have hundreds of thousands of records (in 32-bit).
Filename Latest Rev Last Changed Committer Comment Size
..
_static 4634.39.6 15 years ago Ian Clatworthy put Russian docs into their own website/chm file Diff
_templates 4634.39.6 15 years ago Ian Clatworthy put Russian docs into their own website/chm file Diff
mini-tutorial 3638.6.1 16 years ago Alexey Shtokalo Initial commit for russian version of documents. Diff
quick-reference 3638.6.1 16 years ago Alexey Shtokalo Initial commit for russian version of documents. Diff
tutorials 3638.6.13 15 years ago Alexander Belchenko using_bazaar_with_launchpad.txt: translated text c Diff
user-guide 3638.6.28 15 years ago Dmitry Vasiliev Initial version of Russian user guide Diff
conf.py 5193.6.28 14 years ago Vincent Ladeuil Fix remaining sphinx_conf references. 3.6 KB Diff Download File
index.txt 5193.5.8 14 years ago Vincent Ladeuil Revert previous change as I can't reproduce the re 1.1 KB Diff Download File