You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functools.lru_cache was made free-thread safe but is not so in an efficient way. It works currently by serializing the function being cached and preventing it from executing concurrently even if it can. Effectively, for the function being cached, it is as if the GIL still exists.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Feature or enhancement
Proposal:
functools.lru_cache
was made free-thread safe but is not so in an efficient way. It works currently by serializing the function being cached and preventing it from executing concurrently even if it can. Effectively, for the function being cached, it is as if the GIL still exists.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
Linked PRs
The text was updated successfully, but these errors were encountered: