[PATCH] alternate implementation of adding archives to hgwebdir index page
Vadim Gelfer
vadim.gelfer at gmail.com
Fri Apr 28 05:07:26 UTC 2006
On 4/27/06, Colin McMillen <mcmillen at cs.cmu.edu> wrote:
> This patch is an alternate implementation of the one sent earlier. It
> also adds archive links to the main hgwebdir page.
thank you.
> It has the
> advantage of looking at each repo's .hgrc to see which archive types
> should be enabled (so the behavior is consistent with the archive
> links provided by hgweb).
this is very good idea.
> It has the (minor) disadvantage of needing
> to create hgweb objects for each of the repos. Choose whichever one
> you like... :)
sorry, this is major disadvantage. i have 90 repos served by hgwebdir.
creation of entire localrepository object for each repo every time
someone visits index page makes index page very slow to load, burns
lot of cpu cycles.
please find other way to do this. i like idea of not writing duplicate
code, but performance hit is very really big here.
More information about the Mercurial
mailing list