Reducing startup time

Matt Mackall mpm at selenic.com
Sun Feb 1 19:24:19 CST 2009


On Mon, 2009-02-02 at 00:48 +0100, Martin Geisler wrote:
> Hi,
> 
> Brendan and I discussed on IRC how we can avoid doing several hundred
> translations on every startup, even when hg makes no output.

Bleck.

I've yet to see anything to convince me that it's the translation of
individual strings that is the problem. Everything I've seen suggests
that simply searching for and loading the dozen or so extra modules
needed by Python's stupid gettext implementation is what's causing the
slowdown, not the loading of the translations nor the translation of
strings.

C implementations of gettext manage to be orders of magnitude faster for
both startup and translation, of course.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial-devel mailing list