[ANN] History-search/grep plugin Update: now 800% faster!
Michael Ellerman
michael at ellerman.id.au
Sun Feb 12 01:57:49 GMT 2006
On 2/11/06, John A Meinel <john at arbash-meinel.com> wrote:
> John A Meinel wrote:
> > Michael Ellerman wrote:
> >> It's _insanely_ fast, thanks to the weave, we can search bzr.dev for a
> >> non-matching pattern in about 3 seconds. With lots of matches you end
> >> spending all your time converting revids to revnos, so --show-ids
> >> makes it a lot faster.
>
> Now that I'm looking at your code, I think the other problem is that you
> are building up a RevisionSpec, just to get at a revno.
>
> I assume you didn't know about "Branch.revision_id_to_revno", but I
> would still recommend building it up yourself with the above loop. It is
> 1 pass over the list, rather than N passes.
I already had a revno cache, I just wasn't ever populating it, duh. So
wiring that up right gave me a good speedup, and doing all the
translations in one pass at the start makes it fly. Thanks for the
pointers.
cheers
More information about the bazaar
mailing list