Startup time is regressing

Nicolas Dumazet nicdumz at gmail.com
Mon Nov 8 17:58:27 CST 2010


2010/11/9 Matt Mackall <mpm at selenic.com>:
> On Mon, 2010-11-08 at 09:52 +0100, Dirkjan Ochtman wrote:
>> On Mon, Nov 8, 2010 at 00:44, Matt Mackall <mpm at selenic.com> wrote:
>> > That's the time it takes to run 'hg version -q'. That's 28.7% slower,
>> > mostly since 1.5. Most of the big hit in 1.6 appears to come from:
>> >
>> > changeset:   11297:d320e70442a5
>> > user:        FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
>> > date:        Sun Jun 06 17:20:10 2010 +0900
>> > summary:     replace Python standard textwrap by MBCS sensitive one for
>> > i18n text
>>
>> Sounds like maybe we should make that optional.
>
> My locale is C, so we shouldn't actually be getting anywhere near this
> code.

So.... if locale is C and/or HGPLAIN, disable this? I dont think that
we should try to be clever for other languages.
In the same kind of ideas, the code fetching the translation in
i18n.py should not be run when using HGPLAIN?


 We also probably should not be recreating the MBCSWrapper each time
as it's reusable.


-- 
Nicolas Dumazet — NicDumZ


More information about the Mercurial-devel mailing list