Message227940
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. |
|
Date |
User |
Action |
Args |
2014-09-30 14:56:51 | yselivanov | set | recipients:
+ yselivanov, gvanrossum, vstinner, python-dev, chatgris |
2014-09-30 14:56:51 | yselivanov | set | messageid: <1412089011.17.0.917271060123.issue22448@psf.upfronthosting.co.za> |
2014-09-30 14:56:51 | yselivanov | link | issue22448 messages |
2014-09-30 14:56:50 | yselivanov | create | |
|