https://codereview.appspot.com/67400043/diff/60001/asyncio/base_events.py File asyncio/base_events.py (right):
https://codereview.appspot.com/67400043/diff/60001/asyncio/base_events.py#newcode262 asyncio/base_events.py:262: self._assert_is_current_event_loop() IMO you should move the check to the debug flag here: if self._debug: self._assert_is_current_event_loop() It would reduce the overhead in release mode (function calls in Python are "expensive"). https://codereview.appspot.com/67400043/diff/60001/asyncio/base_events.py#newcode282 asyncio/base_events.py:282: if check_loop: Ditto: if check_loop and self._debug: ... https://codereview.appspot.com/67400043/
