Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.14] gh-140414: add fastpath for current running loop inasyncio.all_tasks (GH-140542)#144494

Open
miss-islington wants to merge 1 commit intopython:3.14from
miss-islington:backport-95e5d59-3.14
Open

[3.14] gh-140414: add fastpath for current running loop inasyncio.all_tasks (GH-140542)#144494
miss-islington wants to merge 1 commit intopython:3.14from
miss-islington:backport-95e5d59-3.14

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedFeb 5, 2026
edited by bedevere-appbot
Loading

Optimizeasyncio.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 forasyncio.current_task() so we do the same forasyncio.all_tasks().
(cherry picked from commit95e5d59)

Co-authored-by: Kumar Adityakumaraditya@python.org

…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 commit95e5d59)Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@1st11st1Awaiting requested review from 1st11st1 is a code owner

@asvetlovasvetlovAwaiting requested review from asvetlovasvetlov is a code owner

@kumaraditya303kumaraditya303Awaiting requested review from kumaraditya303kumaraditya303 is a code owner

@willingcwillingcAwaiting requested review from willingcwillingc is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@miss-islington@kumaraditya303

[8]ページ先頭

©2009-2026 Movatter.jp