[PATCH] obsolete: use C code for headrevs calculation

Durham Goode durham at fb.com
Tue Sep 16 22:19:03 CDT 2014


On 9/16/14, 7:26 PM, Durham Goode wrote:
> # HG changeset patch
> # User Durham Goode <durham at fb.com>
> # Date 1410908601 25200
> #      Tue Sep 16 16:03:21 2014 -0700
> # Node ID 6c5330a7df580468bb0ca85dda11f2a2d14eed89
> # Parent  48791c2bea1ceda4e4f28bc11651e281d636ce1a
> obsolete: use C code for headrevs calculation
>
> Previously, if there were filtered revs the repository could not use the C fast
> path for computing the head revs in the changelog. This slowed down many
> operations in large repositories.
>
> This adds the ability to filter revs to the C fast path. This speeds up histedit
> on repositories with filtered revs by 30% (13s to 9s). This could be improved
> further by sorting the filtered revs and walking the sorted list while we walk
> the changelog, but even this initial version that just calls __contains__ is
> still massively faster.
>
I’ve been told I need to make this backwards compatible with old 
Mercurial calls. So I’ll resend later.


More information about the Mercurial-devel mailing list