[issue32204] async/await performance is very low
Yury Selivanov
report at bugs.python.org
Mon Dec 4 22:47:50 EST 2017
Yury Selivanov <yselivanov at gmail.com> added the comment:
> I agree that the PR I offers little (or no) improvement but I implore you to explore performance bottlenecks in async/await.
And I'm saying that there are no "performance bottlenecks in async/await". async/await is *not* asyncio. async/await and yield are language constructs that use generator objects.
Your benchmark *does not* test async/await vs yield. It compares asyncio.gather to batches in asynq.
Now, maybe asyncio.gather can be optimized, but we should open a separate issue for that if we can have a better implementation of it.
Your benchmark doesn't test the performance of IO -- that's the thing we actually optimize in asyncio and that we usually benchmark. asyncio.gather is a niche thing, and usually network applications don't have it as a bottleneck.
Closing this issue.
----------
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32204>
_______________________________________
More information about the Python-bugs-list
mailing list