Skip to content

Disable tracking of frozenset objects with immutables in the GCย #140232

@eendebakpt

Description

@eendebakpt

Feature or enhancement

Proposal:

Frozenset objects with immutable objects do not need to be tracked by the GC. A similar optimization is already in place for tuples (#48938, #140204).
In particular for longer running programs with immutable frozensets this is benefical.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagetype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions