Startup time is regressing
Matt Mackall
mpm at selenic.com
Mon Nov 8 18:18:19 UTC 2010
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.
> > 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.
Haha, even Py3k is not going to take .02s for a single function call.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list