[Python-Dev] this is what happens if you freeze all the modules required for startup

Brett Cannon brett at python.org
Tue Apr 15 17:29:43 CEST 2014


On Tue, Apr 15, 2014 at 11:19 AM, Daniel Holth <dholth at gmail.com> wrote:

> IIRC it is no longer the case that ZIP imports (involving only one
> file for a lot of modules) are much faster than regular FS imports?
>

It's definitely minimized since Python 3.3 and the caching of stat results
at the directory level for a small amount of time.

-Brett


>
> On Tue, Apr 15, 2014 at 10:34 AM, Eric Snow <ericsnowcurrently at gmail.com>
> wrote:
> > On Tue, Apr 15, 2014 at 1:45 AM, Chris Angelico <rosuav at gmail.com>
> wrote:
> >> Specific use-case that I can see: Mercurial. In a git vs hg shoot-out,
> >> git will usually win on performance, and hg is using Py2; migrating hg
> >> to Py3 will (if I understand the above figures correctly) widen that
> >> gap, so any improvement done to startup performance will give a very
> >> real advantage.
> >
> > Perhaps not so much "a very real advantage" as "less of a
> > distraction". It's still significantly slower than 2.7.  :)
> >
> > -eric
> > _______________________________________________
> > Python-Dev mailing list
> > Python-Dev at python.org
> > https://mail.python.org/mailman/listinfo/python-dev
> > Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/dholth%40gmail.com
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/brett%40python.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140415/58e1d000/attachment.html>


More information about the Python-Dev mailing list