/brz/remove-bazaar

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

  • Committer: John Arbash Meinel
  • Date: 2009-10-17 04:43:14 UTC
  • Revision ID: john@arbash-meinel.com-20091017044314-nlvrrqnz0f2wzcp4
change the GroupcompressBlock code a bit.
If the first decompress request is big enough, just decompress everything.
And when we do that, let go of the decompressobj.

After digging through the zlib code, it looks like 1 zlib stream object
contains a 5kB internal state, and another 4*64kB buffers. (about 260kB
of total state.)
That turns out to be quite a lot if you think about it.


In the case of branching a copy of 'bzr.dev' locally, this turned out
to be 383MB w/ bzr.dev and 345MB w/ only this patch. (So ~11% of peak).

Also, this was 'unreferenced' memory, because it is hidden in the
zlib internal state in working buffers. So it wasn't memory that Meliae
could find. \o/.
Filename Latest Rev Last Changed Committer Comment Size
..
__init__.py 4183.7.1 16 years ago Sabin Iacob update FSF mailing address 1.8 KB Diff Download File
test_branch.py 4183.7.1 16 years ago Sabin Iacob update FSF mailing address 1.5 KB Diff Download File
test_cat.py 4183.7.1 16 years ago Sabin Iacob update FSF mailing address 2 KB Diff Download File
test_checkout.py 4183.7.1 16 years ago Sabin Iacob update FSF mailing address 1.4 KB Diff Download File
test_commit.py 4183.7.1 16 years ago Sabin Iacob update FSF mailing address 2.5 KB Diff Download File
test_init.py 4183.7.1 16 years ago Sabin Iacob update FSF mailing address 1.2 KB Diff Download File
test_init_repository.py 4183.7.1 16 years ago Sabin Iacob update FSF mailing address 1.3 KB Diff Download File
test_merge.py 4183.7.1 16 years ago Sabin Iacob update FSF mailing address 1.4 KB Diff Download File
test_missing.py 4183.7.1 16 years ago Sabin Iacob update FSF mailing address 1.4 KB Diff Download File
test_pull.py 4183.7.1 16 years ago Sabin Iacob update FSF mailing address 2 KB Diff Download File
test_push.py 4183.7.1 16 years ago Sabin Iacob update FSF mailing address 1.6 KB Diff Download File
test_update.py 4183.7.1 16 years ago Sabin Iacob update FSF mailing address 1.4 KB Diff Download File