Windows and hgserve

Matt Mackall mpm at selenic.com
Wed Jan 13 13:34:06 CST 2016


On Mon, 2016-01-04 at 10:16 -0500, Jérôme Godbout wrote:
> Hi,
> I have a cgi enabled setup that work but the performance are abysal
> (awaited, but this is really slow, even for a single user browsing the
> code, even pushing a tag taken 30 sec, look like something is timeouting or
> something, not sure what may cause this, it work but it's really slow).

This is usually a permissions/cache issue. Mercurial keeps caches of tags and
branches. If they don't exist or are invalid, they're reconstructed from scratch
on demand and then written to disk. If they can't be written (for instance
because your webserver doesn't have write permission to the cache files), then 
it happens on every request. For large repos, this can take a while.

You should test performance against "hg serve" to rule out configuration
problems of your web server.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list