Slow hgweb.cgi

Stefan R. stefan.rybacki at uni-rostock.de
Fri Oct 12 06:07:59 CDT 2012


Dominik Psenner <dpsenner <at> gmail.com> writes:

> 
> We don't use recursive scanning, see my first email (/s/collections/). I
> actually don't know if the syntax:
> 
> [collections]
> repos/ = repos/
> 
> would cause a recursive directory scanning, but it shouldn't harm anyway
> because all repositories are located right at the first level below
> repos/ and they are all updated to null (thus empty except .hg).
> 
> Any other ideas?

Yes, we run into the same problems and fixed it by NOT using [collections] 
paths.
If you'd do:

[paths]
repos/ = repos/*

as you said all your repos are at the top-level of those folders, it should 
improve speed dramatically, as for the version using [collections] is scanning 
the directory structure on every request and that seems really really slow on a 
shared network drive.

Hope that helps
Stefan 






More information about the Mercurial-devel mailing list