~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 4371.4.28.

  • Committer: John Arbash Meinel
  • Date: 2009-06-19 19:54:41 UTC
  • mto: This revision was merged to the branch mainline in revision 4466.
  • Revision ID: john@arbash-meinel.com-20090619195441-svubgww09wvmqh40
We spent a lot of time adding and removing keys from tails.
Because we walk parent_map randomly, we don't know early on whether we will see
a parent node again or not. And it turns out that we rarely do, but we often
have to enqueue lots of nodes in case they show up later.

My getting rid of add/remove and instead iterating over the dict a second time,
we are down to 547ms and 44ms for OOo and bzr.dev.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: