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 vstinner
Recipients chatgris, gvanrossum, python-dev, vstinner, yselivanov
Date 2014-09-30.10:13:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412072010.6.0.717103962211.issue22448@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, I'm coming later after the review and the commit, but I worry about performances of _run_once() since it's the core of asyncio. Yury proposed to only iterate once on self._scheduled when removing delayed calls, and I have the same concern.

Here is a patch which change _run_once() to only iterate once.

IMO the change is obvious, the current iterates twice and makes the same check twice (check the _cancelled attribute of handles).
History
Date User Action Args
2014-09-30 10:13:30vstinnersetrecipients: + vstinner, gvanrossum, python-dev, yselivanov, chatgris
2014-09-30 10:13:30vstinnersetmessageid: <1412072010.6.0.717103962211.issue22448@psf.upfronthosting.co.za>
2014-09-30 10:13:30vstinnerlinkissue22448 messages
2014-09-30 10:13:30vstinnercreate