Merge lp:~jameinel/bzr/1.17-extract-one-time into lp:~bzr/bzr/trunk-old
Proposed by
John A Meinel
Status: | Merged |
---|---|
Approved by: | Ian Clatworthy |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~jameinel/bzr/1.17-extract-one-time |
Merge into: | lp:~bzr/bzr/trunk-old |
Diff against target: | 27 lines |
To merge this branch: | bzr merge lp:~jameinel/bzr/1.17-extract-one-time |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins (community) | Approve | ||
Review via email: mp+7587@code.launchpad.net |
To post a comment you must log in.
While investigating 'annotate' performance, I was surprised to find that _simple_annotate was 4x slower than the optimized path (even with the KnownGraph improvements). (90ms versus 370ms)
It turns out that at least one problem was that doing "get_record_ stream( ..., True)" was causing the _ContentMapGene rator to read the raw records 2 times. One time in __init__, and then a second time in _work.
This patch just removes the second call. Which makes _simple_annotate 265ms (3:1). This would effect any time we have code that tries to get fulltexts. So it should also impact things like building the working tree, etc.