Startup time is regressing

Dirkjan Ochtman dirkjan at ochtman.nl
Mon Nov 8 02:52:06 CST 2010


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.

> python 2.6.6 --version: 0.00501s
> python 2.6.6 -c 'print "hello world"': 0.02431s
>
> python 3.1.2 --version: 0.00536s
> python 3.1.2 -c 'print("hello world")': 0.04105s

Well, in 3.x print is a function call, so some of that might be due to
the fact that function calls are slow.

Cheers,

Dirkjan


More information about the Mercurial-devel mailing list