Message308514
NP. I have another PR in the pipeline: https://github.com/python/cpython/pull/4913
Both optimizations make your benchmark run 30% faster on 3.7. If you compile asyncio.gather() with Cython you will get it another 5-15% faster. If you use uvloop - another 10-20%.
If it's still slower than asynq, then the issue must be in how asynq schedules its callbacks, it might be more optimal for some specific use cases than asyncio.
FWIW I don't expect asynq to be any faster than asyncio (or than uvloop) for network IO. And there's definitely no problem with async/await performance -- we're optimizing asyncio here, not the interpreter. |
|
Date |
User |
Action |
Args |
2017-12-18 04:33:05 | yselivanov | set | recipients:
+ yselivanov, serhiy.storchaka, Liran Nuna |
2017-12-18 04:33:05 | yselivanov | set | messageid: <1513571585.23.0.213398074469.issue32204@psf.upfronthosting.co.za> |
2017-12-18 04:33:05 | yselivanov | link | issue32204 messages |
2017-12-18 04:33:04 | yselivanov | create | |
|