Skip to content

Performance regression: asyncio.gather() is slower and uses more memory since gh-157213 #158239

Description

@deadlovelll

Bug report

Bug description:

Reported by #157213 (comment)

The probable cause of the regression is this line:

        outer.add_done_callback(
            functools.partial(_discard_awaited_by, children, cur_task))

I'll push the PR and send benchmarks results to the comments

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS, Linux, Windows, Other

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or error

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions