hg serve is soo slow

Martin Scotta martinscotta at gmail.com
Tue Sep 25 10:16:08 CDT 2012


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,
searching for the "age" class and then performs some string manipulation on
them, all that in the worst possible manner.
I tried to fix it, specially because I cannot use the serve due to this
piece of code, but I could not find where that file is stored.

Would you please point me where that piece of code lives?

Regards,
 Martin Scotta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120925/2b24efa7/attachment.html>


More information about the Mercurial-devel mailing list