why do identify and diff take a long time?

Thomas Arendsen Hein thomas at intevation.de
Wed Jul 20 13:01:56 UTC 2005


* Sean Dague <sean at dague.net> [20050720 14:11]:
> On the xen unstable tree, I've noticed that hg identify and hg diff each
> take about a minute to complete.  While I know this is a large tree, I'm
> curious why it is taking so long, and if there is any thought on trying to
> optimize these operations.
> 
> dargo:~/xen-unstable.hg> time hg identify
> 2ecb91fb6cdb tip
> 55.13user 1.97system 1:00.60elapsed 94%CPU (0avgtext+0avgdata 0maxresident)k
> 0inputs+0outputs (0major+1631minor)pagefaults 0swaps
> 
> dargo:~/xen-unstable.hg> time hg diff    
> 54.99user 1.80system 1:00.12elapsed 94%CPU (0avgtext+0avgdata 0maxresident)k
> 0inputs+0outputs (0major+1644minor)pagefaults 0swaps

$ time hg id
2ecb91fb6cdb tip

real    0m1.026s
user    0m0.300s
sys     0m0.080s

$ time hg diff >/dev/null

real    0m1.043s
user    0m0.350s
sys     0m0.080s

And this is over NFS ...

Which version of Mercurial are you using?

Thomas

-- 
Email: thomas at intevation.de
http://intevation.de/~thomas/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20050720/33215d67/attachment-0001.asc>


More information about the Mercurial mailing list