-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Open
Labels
3.15new features, bugs and security fixesnew features, bugs and security fixesperformancePerformance or resource usagePerformance or resource usagetopic-free-threading
Description
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
Labels
3.15new features, bugs and security fixesnew features, bugs and security fixesperformancePerformance or resource usagePerformance or resource usagetopic-free-threading