[issue33521] Add 1.32x faster C implementation of asyncio.isfuture().
Jimmy Lai
report at bugs.python.org
Sat May 19 14:16:08 EDT 2018
Jimmy Lai <yurinai at gmail.com> added the comment:
@pitrou This change is part of optimization for asyncio.gather().
gather -> ensure_future -> isfuture/iscoroutine/isawaitable
We need C implementation for all those function to make gather really efficient for large scale application (e.g. Instagram)
Gather is really slow and cost ~2% CPU on our server.
The same optimization approach has been apply on other ciritcal asyncio modules, e.g. Future, get_event_loop, etc.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33521>
_______________________________________
More information about the Python-bugs-list
mailing list