[Python-Dev] Timing breakdown of Py_InitializeEx_Private()

Brett Cannon bcannon at gmail.com
Wed Apr 16 14:29:27 CEST 2014


On Apr 16, 2014 3:47 AM, "Christian Heimes" <christian at python.org> wrote:
>
> On 16.04.2014 04:35, Guido van Rossum wrote:
> > Well, that's the part that does "import site". Anything that speeds up
> > the code in Lib/site.py might help. :-)
>
> Antoine, Victor and me have implemented a couple of speed ups for
> "import site" already. I removed several unnecessary imports by
> rearranging some code. AFAIK imports on OSX haven't been optimized yet.
>
> On Linux I get:
>
> $ ./python -c "import sys; print(len(sys.modules))"
> 34
> $ ./python -S -c "import sys; print(len(sys.modules))"
> 22
>
> Brett, are you an OSX developer? :)

Yep, my laptop is OS X.

-Brett

>
> Christian
>
> _______________________________________________
> 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/20140416/c2d7053a/attachment.html>


More information about the Python-Dev mailing list