~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 4371.3.31.

  • Committer: John Arbash Meinel
  • Date: 2009-06-11 21:09:18 UTC
  • mto: (4371.4.5 vila-better-heads)
  • mto: This revision was merged to the branch mainline in revision 4449.
  • Revision ID: john@arbash-meinel.com-20090611210918-mk52ural4dbxteax
Change _KnownGraph.parents to be a tuple rather than a list.
We know the size as soon as we walk to a map entry.
This way, we save a malloc, and have slightly smaller objects. Not a huge
difference, but a small one.
This changes KnownGraph(OOo_parent_map) time from 922ms down to 848ms, or
about a 10% savings for __init__ time.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: