-
Committer:
John Arbash Meinel
-
Date:
2008-08-25 19:02:16 UTC
-
mto:
This revision was merged to the branch mainline in
revision
3688.
-
Revision ID:
john@arbash-meinel.com-20080825190216-vdkyinz5p5e5s8kq
Two quick tweaks.
Change _iter_mem_nodes to use sorted order.
That way we can sort purely on the 'key' which
we know is the sort key anyway. This shaves off
a *lot* of time spent in 'sorted()'.
Also, if 'references' is in our output nodes,
we know we've already checked that it is a valid
key, so we don't need to check it again.
This shaves another 600ms or so for a bzr.dev tree.