Skip to content

poor scaling of functools.lru_cache #142631

@kumaraditya303

Description

@kumaraditya303

functools.lru_cache currently scales poorly in free-threading because of reference counting contention on the object. The underlying function has deferred reference counting enabled but the cache object itself needs deferred reference counting as well to perform well in free-threading.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions