Slow hgweb.cgi

Isaac Jurado diptongo at gmail.com
Thu Apr 14 02:07:23 CDT 2011


On Thu, Apr 14, 2011 at 8:30 AM, Dominik Psenner <dpsenner at gmail.com> wrote:
>
> Here the time of both:
>
> dominik at hgserver:/var/hg/repos/XXX$ time hg in http://hgserver:8000/
> comparing with http://hgserver:8000/
> searching for changes
> no changes found
>
> real    0m0.228s
> user    0m0.080s
> sys     0m0.056s
> dominik at hgserver:/var/hg/repos/XXX$ time hg in http://hgserver/hg/XXX/
> comparing with http://hgserver/hg/XXX/
> searching for changes
> no changes found
>
> real    0m14.385s
> user    0m0.100s
> sys     0m0.024s

Then, the last thing I can think of is to instrument the hgweb
CGI/WSGI to gather and dump profiling information, just like the
--profile command line option.  The code for such option is at:

    http://selenic.com/hg/file/b032bec2c0a6/mercurial/dispatch.py#l613



More information about the Mercurial-devel mailing list