[issue33521] Add 1.32x faster C implementation of asyncio.isfuture().

Jimmy Lai report at bugs.python.org
Fri May 25 13:42:31 EDT 2018


Jimmy Lai <yurinai at gmail.com> added the comment:

@vstinner
In general, we would like to make all asyncio common functions efficient with C implementation because CPython asyncio overhead is very expensive.
In our application, overall it costs about 10% global CPU instructions after we used UVLoop (it's much worse when use default event loop).
gather() is only one of the high level function bottleneck. To make CPU overhead not a concern for asyncio user, we should make isfuture in C because it's called by many other event loop functions, e.g. in asyncio/tasks.py, asyncio/coroutines.py, asyncio/base_events.py

----------

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


More information about the Python-bugs-list mailing list