[issue567] Mercurial Performance Problem

Guido Ostkamp mercurial-bugs at selenic.com
Mon May 21 13:39:31 CDT 2007


New submission from Guido Ostkamp <hg at ostkamp.fastmail.fm>:

(This has also been posted on the List on 2007-05-16 and was accepted as bug by
Matt Mackall)

The mercurial version I used for testing was ba22e867cb23+20070510.

I changed a file in my large repository, then I tried a 
'hg diff pathname' on it. This simple call took a very long time.

I investigated using 'strace' and it appears Mercurial
is using tons of lstat() and getdents() calls. In my case I 
counted 29009 lstat64() and 4634 getdents64() calls. lstat
is called for tons of files that have nothing to do with
my change.

For comparision: I have the same repository in Git. There I get the response
in almost no time with just 12 lstat() calls and 2 getdents().

When a fix gets available, I can test it anytime.

----------
messages: 3105
nosy: ostkamp
priority: bug
status: unread
title: Mercurial Performance Problem

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue567>
____________________________________________________



More information about the Mercurial-devel mailing list