hg serve is soo slow

Matt Mackall mpm at selenic.com
Tue Sep 25 15:41:37 CDT 2012


On Tue, 2012-09-25 at 12:16 -0300, Martin Scotta wrote:
> Hi hg dev,
> With the latest update (version 2.3.1+20120908) the command hg serve became
> completely unusable due to a bad-written javascript function.
> My browser complains about some function taking too long to finish -- I'm
> using latest Firefox on a brand new Retina MacBook Pro
> 
> The function process_dates (mercurial.js) traverses the ENTIRE dom,

Usually, this is fine because pages like the index are very small. But
apparently on large files (with no dates to process!) this can take
quite a while. For instance, i18n/ru.po in the Mercurial repo (25k
lines) takes 9s to fully load, according to Firebug.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list