Message227874
| 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). |
|