~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 4679.3.44.

  • Committer: John Arbash Meinel
  • Date: 2009-09-30 19:15:34 UTC
  • mto: (4679.6.1 2.1-export-c-api)
  • mto: This revision was merged to the branch mainline in revision 4735.
  • Revision ID: john@arbash-meinel.com-20090930191534-2mi59m6qxtsoaw7j
Special case the empty tuple as a singleton.
tuple() already had this property, we just added it to StaticTuple.
After doing that and fixing up one more code path in BtreeSerializer (when there
are no ref lists), memory is down to:
  98876KB w/ 6.0MB in the intern dict.
So it seems we had 4MB of tuples in the 'no-ref-list' cases, and just
switching it over to StaticTuple caused no memory decrease, which means there
were a lot of empty tuples.
Makes sense, since chk_bytes is the bulk of our objects and has no ref lists

Note that Launchpad's memory consumption is also down to:
  268580KB w/ 24MB intern dict.
down from (bzr.dev):
  326656KB
A 1.22:1 reduction.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: