This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients chatgris, gvanrossum, python-dev, vstinner, yselivanov
Date 2014-09-30.14:56:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412089011.17.0.917271060123.issue22448@psf.upfronthosting.co.za>
In-reply-to
Content
Victor,

I've done some additional testing. Here's a test that Joshua wrote for the code review: https://gist.github.com/1st1/b38ac6785cb01a679722

It appears that single loop approach works a bit faster for smaller collections of tasks. On a list of 10000 tasks it's on average faster 2-3%, on a list of 1000000 tasks it's slower for 2-3%.

I'm not sure what's the average number of tasks for an "average" asyncio application, but something tells me it's not going to be in range of millions. I think you can fix the code to have a single loop.
History
Date User Action Args
2014-09-30 14:56:51yselivanovsetrecipients: + yselivanov, gvanrossum, vstinner, python-dev, chatgris
2014-09-30 14:56:51yselivanovsetmessageid: <1412089011.17.0.917271060123.issue22448@psf.upfronthosting.co.za>
2014-09-30 14:56:51yselivanovlinkissue22448 messages
2014-09-30 14:56:50yselivanovcreate