Slow hgweb.cgi

Stefan R. stefan.rybacki at
Fri Oct 12 06:07:59 CDT 2012

Dominik Psenner <dpsenner <at>> 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] 
If you'd do:

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

More information about the Mercurial-devel mailing list