Skip to content

Slot asyncio.Future #151572

@jonathandung

Description

@jonathandung

Feature or enhancement

Proposal:

When many async futures are created, for example in an asyncio.Queue, having __slots__ on the class declaration on asyncio.Future, both the pure Python fallback version and the C-accelerated version, may save memory usage.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirpendingThe issue will be closed if no feedback is providedstdlibStandard Library Python modules in the Lib/ directorytopic-asynciotype-featureA feature request or enhancement
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions