/brz/remove-bazaar

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

  • 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
..
bash_completion 5147.5.1 15 years ago Martin von Gagern Join bzr-bash-completion plugin into core bzr tree Diff
launchpad 1668.1.8 19 years ago Martin Pool Merge register-branch plugin into default plugins Diff
netrc_credential_store 3757.3.2 16 years ago Vincent Ladeuil Add a credential store for '.netrc'. * plugins/ne Diff
news_merge 4869.3.27 15 years ago Andrew Bennetts Move news_merge plugin from contrib to bzrlib/plug Diff
__init__.py 4183.7.1 16 years ago Sabin Iacob update FSF mailing address 771 bytes Diff Download File