[Python-ideas] solving multi-core Python

Gregory P. Smith greg at krypto.org
Tue Jun 23 01:29:17 CEST 2015


On Mon, Jun 22, 2015 at 3:51 PM Sturla Molden <sturla.molden at gmail.com>
wrote:

> "Gregory P. Smith" <greg at krypto.org> wrote:
>
> > What this means for subinterpreters in this case is not much different
> from
> > starting up multiple worker processes: You need to start them up and wait
> > for them to be ready to serve, then reuse them as long as feasible before
> > recycling them to start up a new one. The startup cost is high.
>
> The statup cost for worker processes is high on Windows. It is very small
> on nearly any other OS.
>

While I understand that Windows adds some overhead there, startup time for
Python worker processes is high on all OSes.

Python startup is slow in general. It slows down further based on the
modules you must import before you can begin work.

-gps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150622/6cf57d3e/attachment-0001.html>


More information about the Python-ideas mailing list