i18n: beginnings of a Danish translation

Matt Mackall mpm at selenic.com
Thu Jan 15 14:59:56 CST 2009


On Thu, 2009-01-15 at 20:34 +0100, Martin Geisler wrote:
> > Also, we need to document the best way to turn off l10n, if indeed
> > want to default to on. That's not completely clear as it has both
> > compatibility and performance impacts:
> >
> > $ hg perfstartup
> > ! wall 0.049808 comb 0.000000 user 0.000000 sys 0.000000 (best of 100)
> >
> > $ LANG=da hg perfstartup
> > ! wall 0.083391 comb 0.000000 user 0.000000 sys 0.000000 (best of 100)
> >
> > Almost all of that is imports that we normally don't need.
> 
> As for Python module imports, then I believe the code does the same
> imports as before.

It does, but Mercurial's demandloader avoids actually doing most of the
imports in the no-translation case. Most of the time is searching for
and loading a ton of modules to parse the mo file.

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




More information about the Mercurial-devel mailing list