8000 gh-104144: Skip scheduling a done callback if a TaskGroup task completes eagerly by itamaro · Pull Request #104140 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-104144: Skip scheduling a done callback if a TaskGroup task completes eagerly #104140

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

Merged
merged 6 commits into from
May 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add NEWS entry
  • Loading branch information
itamaro committed May 3, 2023
commit 8d6a77e8c312bb1cbdaaca2f316897412fce4da3
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Optimize asyncio.TaskGroup when using eager tasks factory -- Skip scheduling
done callbacks when all tasks finish without blocking - for up to 4x speedup
0