Integration of Mercurial into LXR

andre-littoz page74010-sf at yahoo.fr
Fri Dec 14 20:37:01 UTC 2012


>Do you get different timings when the commands are run by the web

>server? I assume that the repository is on a local disk, and not
>NFS-mounted or anything like that.

The context is a bit different between the shell and the web server. Under the shell, 'time command' measures total processing time. Under the web server, 'time' measures only pipe initialisation time I fear (I open the pipe with modified command 'time (list of commands) |', then every iteration of a loop processes a line)

>Just to give you some idea of what "normal" performance might look
>like, here are some timings against a clone of the mercurial
>repository:
>real    0m0.256s
>real    0m0.252s

My figures for real are between 0.02 and 0.06s, high figures under the shell, low figures with the web server (they surely do not tick the meaningful data output time)

I have a lead for slow file display: LXR internal architecture for decorating source with "annotations" (rev-id and author) is fitted for CVS/Git concept. I modified it a bit for Mercurial to decrease the number of calls to hg but it still results in about twice as many 'hg cat' as strictly necessary. I'll try another approach more in the hg spirit.
When annotations are suppressed, file display is acceptably fast.

Thanks again for help.

André
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20121214/4dad3f3a/attachment-0002.html>


More information about the Mercurial mailing list