Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-112075: Avoid locking shared keys on every assignment #116087

Merged
merged 2 commits into from
Feb 29, 2024

Conversation

DinoV
Copy link
Contributor

@DinoV DinoV commented Feb 29, 2024

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
Objects/dictobject.c Outdated Show resolved Hide resolved
Objects/dictobject.c Outdated Show resolved Hide resolved
Objects/dictobject.c Outdated Show resolved Hide resolved
@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
34 checks passed
woodruffw pushed a commit to woodruffw-forks/cpython that referenced this pull request Mar 4, 2024
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants