[issue33115] Asyncio loop blocks with a lot of parallel tasks

Yury Selivanov report at bugs.python.org
Thu Mar 22 14:06:01 EDT 2018


Yury Selivanov <yselivanov at gmail.com> added the comment:

> Does this mean that GC uses most part of CPU time so the loop blocks?

GC stops all Python code in the OS process from running.  Because of the GIL code in threads will obviously be stopped too.  This is true for both CPython and PyPy at this moment.

> And another question: do you have any plans to optimize the loop so it would be possible to run really lot of tasks in parallel?

The only way of doing this is to have a few asyncio OS processes (because of the GIL we can't implement M:N scheduling in a single Python process).  So it's not going to happen in the foreseeable future :(

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33115>
_______________________________________


More information about the Python-bugs-list mailing list