osutil.c optimization for Win32

Benoit Boissinot bboissin at gmail.com
Wed Sep 3 14:31:54 CDT 2008


On Wed, Sep 3, 2008 at 8:53 PM, Petr Kodl <petrkodl at gmail.com> wrote:
> This is an optimization taking avoiding most of the lstat calls by taking
> advantage of Win32 FindFirst/FindNext embedded iterator information.
> The speedup mileage may vary - I see factor of 2x with my average repository
> (~30k files) for simple hg stat on local repo - which makes it faster than
> Git ;-) on same tree
>
> patch is recorded against hg-crew

This looks quite nice.

Do you think it it possible to abstract some stuff out of it to make
it share most code
with the posix version ?
How portable to different versions of windows is this ?

thanks,

Benoit


More information about the Mercurial-devel mailing list