Author yselivanov
Recipients Liran Nuna, serhiy.storchaka, yselivanov
Date 2017-12-18.04:33:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513571585.23.0.213398074469.issue32204@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-12-18 04:33:05yselivanovsetrecipients: + yselivanov, serhiy.storchaka, Liran Nuna
2017-12-18 04:33:05yselivanovsetmessageid: <1513571585.23.0.213398074469.issue32204@psf.upfronthosting.co.za>
2017-12-18 04:33:05yselivanovlinkissue32204 messages
2017-12-18 04:33:04yselivanovcreate