[PATCH 0 of 3 RFC] performance: use ctx.size comparisons to speed up status

Matt Mackall mpm at selenic.com
Sun Jul 25 11:06:02 CDT 2010


On Sun, 2010-07-25 at 11:12 +0900, Nicolas Dumazet wrote:
> Hello!
> 
> Those changes are brought here as part of my investigation of issue2273.
> 
> == Short version ==
> 
> Test script:
> """
> hg init test1
> hg init test2
> 
> cd test1; dd if=/dev/zero of=test seek=1024k bs=100 count=1; hg ci -Am test
> dd if=/dev/zero of=test seek=1024k bs=200 count=1
> cd ../test2; hg pull ../test1; hg up; echo foo > test2; hg ci -Am test2
> cd ../test1; hg pull ../test2; hg up; time hg stat
> """
> 
> Before:
>     1.34user 0.30system 0:01.70elapsed
> After:
>     0.68user 0.08system 0:00.79elapsed
> 
> Better, but remember that this used to take 100ms on 1.5.3 ... ;)

Ok, but this code is unrelated to the change that made 1.6 slower. So
why are we even looking here?

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list