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
Currently, accessing a
threading.local()from multiple threads doesn't scale well because of reference count contention on the shared_thread._localobject. We should use deferred reference counting on_thread._localto avoid this bottleneck.Linked PRs
_thread._local#128693_thread._local(#128693)" #128753