-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
asyncio.base_events.BaseEventLoop._add_callback references TimerHandle but never uses them #101143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
You might as well submit a PR, we can review then. |
Updated callgrind after #101197 (comment) which brings it down to the 21st most run time from 6th on my test Home Assistant instance. |
kumaraditya303
added a commit
that referenced
this issue
Jan 21, 2023
…ts.BaseEventLoop._add_callback` (#101197) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jan 21, 2023
…e_events.BaseEventLoop._add_callback` (pythonGH-101197) (cherry picked from commit 9e94767) Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jan 21, 2023
…e_events.BaseEventLoop._add_callback` (pythonGH-101197) (cherry picked from commit 9e94767) Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
After 592ada9 it appears this function not longer cares about
self._scheduled
orTimerHandle
but the docstring seems to imply otherwiseYour environment
I only noticed because it was unexpectedly more expensive
I think its dead code and can be simplified to:
Linked PRs
TimerHandle
fromasyncio.base_events.BaseEventLoop._add_callback
(GH-101197) #101216TimerHandle
fromasyncio.base_events.BaseEventLoop._add_callback
(GH-101197) #101217The text was updated successfully, but these errors were encountered: