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

STINNER Victor report at bugs.python.org
Tue May 22 09:40:29 EDT 2018


STINNER Victor <vstinner at redhat.com> added the comment:

> @pitrou We'll measure the wins of gather when we implement it in C. Before that, we need to get all helpers ready in C.

You don't have to provide _asyncio.isfuture() (in C) to implement gather() in C.

If your goal is to optimize gather(), write a change to only implement gather() no?

What's the point of optimizing isfuture() is gather() is implemented in C and doesn't call the Python implementation anymore?

Implement isfuture() is C and expose it as _asyncio.isfuture() are two different things.

----------

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


More information about the Python-bugs-list mailing list