[Python-ideas] PEP 432: Simplifying the CPython startup sequence

Antoine Pitrou solipsis at pitrou.net
Thu Dec 27 17:43:59 CET 2012


On Thu, 27 Dec 2012 18:40:49 +0200
Yuval Greenfield <ubershmekel at gmail.com>
wrote:
> On Thu, Dec 27, 2012 at 6:39 PM, Yuval Greenfield <ubershmekel at gmail.com>wrote:
> 
> > On Thu, Dec 27, 2012 at 5:10 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> >
> >> Performance
> >> -----------
> >>
> >> CPython is used heavily to run short scripts where the runtime is
> >> dominated
> >> by the interpreter initialisation time. Any changes to the startup
> >> sequence
> >> should minimise their impact on the startup overhead. (Given that the
> >> overhead is dominated by IO operations, this is not currently expected to
> >> cause any significant problems).
> >>
> >>
> > I'd like to just stress the performance issue. It seems python3.3 takes
> > 30% more time to start vs 2.7 on my ubuntu.
> >
> > Yuval
> >
> 
> Here's the test I used https://gist.github.com/4389657

Python 3 simply has more modules to load at startup (for example
because of the IO stack).

Regards

Antoine.





More information about the Python-ideas mailing list