gh-112075: Avoid locking shared keys on every assignment by DinoV · Pull Request #116087 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@DinoV

Copy link Copy Markdown

Contributor

@DinoV DinoV commented

Feb 29, 2024

edited by bedevere-app bot

Loading

Currently we lock the shared keys on every assignment to an instance attribute. Now that we have thread-safe gets we can use that instead.

@DinoV DinoV force-pushed the nogil_avoid_keys_lock_on_set branch from af52498 to 22d7bfb Compare

February 29, 2024 02:25

@DinoV DinoV marked this pull request as ready for review

February 29, 2024 02:43

@DinoV DinoV force-pushed the nogil_avoid_keys_lock_on_set branch from d6e97e9 to 8812f5b Compare

February 29, 2024 19:14

@DinoV DinoV merged commit 556749c into python:main

Feb 29, 2024

woodruffw pushed a commit to woodruffw-forks/cpython that referenced this pull request

Mar 4, 2024

@DinoV DinoV deleted the nogil_avoid_keys_lock_on_set branch

May 31, 2024 18:22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@colesbury colesbury colesbury approved these changes

@methane methane Awaiting requested review from methane methane is a code owner

@markshannon markshannon Awaiting requested review from markshannon markshannon is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@DinoV @colesbury