threading.local()
access should scale well from multiple threads
#128691
Labels
performance
Performance or resource usage
topic-free-threading
type-feature
A feature request or enhancement
Currently, accessing a
threading.local()
from multiple threads doesn't scale well because of reference count contention on the shared_thread._local
object. We should use deferred reference counting on_thread._local
to avoid this bottleneck.Linked PRs
_thread._local
#128693The text was updated successfully, but these errors were encountered: