| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
… is running in the current thread by avoiding stop-the-world pauses and locking. This optimization is already present for asyncio.current_task() so we do the same for asyncio.all_tasks().
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
Co-authored-by: Sam Gross <colesbury@gmail.com>
…l_tasks` (python#140542) Optimize `asyncio.all_tasks()` for the common case where the event loop is running in the current thread by avoiding stop-the-world pauses and locking. This optimization is already present for `asyncio.current_task()` so we do the same for `asyncio.all_tasks()`.
|
Thanks @kumaraditya303 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Sorry, something went wrong.
…l_tasks` (pythonGH-140542) Optimize `asyncio.all_tasks()` for the common case where the event loop is running in the current thread by avoiding stop-the-world pauses and locking. This optimization is already present for `asyncio.current_task()` so we do the same for `asyncio.all_tasks()`. (cherry picked from commit 95e5d59) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
|
GH-144494 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
…ll_tasks` (GH-140542) (#144494) * gh-140414: add fastpath for current running loop in `asyncio.all_tasks` (GH-140542) Optimize `asyncio.all_tasks()` for the common case where the event loop is running in the current thread by avoiding stop-the-world pauses and locking. This optimization is already present for `asyncio.current_task()` so we do the same for `asyncio.all_tasks()`. (cherry picked from commit 95e5d59) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
| Back | FazBrowse Home | New Git URL |
Optimize asyncio.all_tasks() for the common case where the event loop is running in the current thread by avoiding stop-the-world pause and locking. This optimization is already present for asyncio.current_task() so we do the same for asyncio.all_tasks().