[PATCH 3 of 3] cmdutil: speed up walkchangerevs() when both following and pruning
Peter Arrenbrecht
peter.arrenbrecht at gmail.com
Fri Nov 28 01:11:12 CST 2008
On Thu, Nov 27, 2008 at 11:43 PM, Patrick Mézard <pmezard at gmail.com> wrote:
> Peter Arrenbrecht a écrit :
>> # HG changeset patch
>> # User Peter Arrenbrecht <peter.arrenbrecht at gmail.com>
>> # Date 1226932056 -3600
>> # Node ID de304148dfd96f03226ff201819a2a5bbe072121
>> # Parent cb0aeff301c4caca5b8a636a49afadd997267f82
>> cmdutil: speed up walkchangerevs() when both following and pruning
>
> Unfortunately I cannot observe any speedup here, it's even the opposite. The patched version is consistently slower for me with small (pyglet) and large (hudson) repos, running log on random branches. Can you indicate a public repo where the patch version is faster, with the command line you use ?
This is against recent Hg crew:
time ./hg log -fr 59f8f6f30630:null -P b965605dfb2e >bla
You can see the 'incoming' this emulates by looking at:
hg glog -r f5f6b7dcd217:null -l20
Here's the result of three consecutive runs (after an initial
cache-priming run) without my patch:
real 0m0.628s
user 0m0.584s
sys 0m0.040s
real 0m0.619s
user 0m0.572s
sys 0m0.028s
real 0m0.598s
user 0m0.552s
sys 0m0.040s
Here's the same with my patch applied:
real 0m0.173s
user 0m0.140s
sys 0m0.028s
real 0m0.188s
user 0m0.160s
sys 0m0.024s
real 0m0.209s
user 0m0.184s
sys 0m0.020s
-parren
More information about the Mercurial-devel
mailing list