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: use per-thread dict version pool #118676

Merged
merged 2 commits into from
May 7, 2024
Merged

Conversation

DinoV
Copy link
Contributor

@DinoV DinoV commented May 6, 2024

We want to avoid contention on the dict version. This moves to using a per-thread pool of 256 dict versions that we can allocate from without hitting the atomic operation for the main thread.

@DinoV DinoV enabled auto-merge (squash) May 7, 2024 00:00
@DinoV DinoV merged commit ff6cbb2 into python:main May 7, 2024
34 checks passed
SonicField pushed a commit to SonicField/cpython that referenced this pull request May 8, 2024
@DinoV DinoV deleted the nogil_dict_version branch May 31, 2024 18:21
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