Skip to content

threading.local() access should scale well from multiple threads #128691

Description

@colesbury

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

Activity

  1. added 3 commits that reference this issue on Jan 9, 2025
  2. added a commit that references this issue on Jan 10, 2025
  3. changed the title [-]`threading.local()` access should scale well[/-] [+]`threading.local()` access should scale well from multiple threads[/+] on Jan 10, 2025
  4. added a commit that references this issue on Jan 10, 2025
  5. added 2 commits that reference this issue on Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions