gh-104144: Skip scheduling a done callback if a TaskGroup task completes eagerly by itamaro · Pull Request #104140 · python/cpython · GitHub

github.com

Tin mới

itamaro:taskgroups-skip-done-callback

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

patch to pyperformance

gh-97696 introduced eager tasks factory, which speeds up some async-heavy workloads by up to 50% when opted in.

Leverage eager tasks to optimize asyncio gather & TaskGroups further #104144

gh-NNNN: Skip scheduling a done callback if a TaskGroup task complete…

View reviewed changes

Apply review feedback to NEWS entry

Merge branch 'main' into taskgroups-skip-done-callback

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

revert skipping _set_task_name if name is None; fix typo in comment

Merge branch 'main' into taskgroups-skip-done-callback

View reviewed changes

: Skip scheduling a done callback if a TaskGroup task …

gh-128588: gh-128550: remove eager tasks optimization that missed and introduced incorrect cancellations #129063