gh-112075: use per-thread dict version pool by DinoV · Pull Request #118676 · 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

May 6, 2024

edited by bedevere-app bot

Loading

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 force-pushed the nogil_dict_version branch from 4d6906a to adb5e13 Compare

May 6, 2024 23:43

@DinoV DinoV enabled auto-merge (squash)

May 7, 2024 00:00

@DinoV DinoV merged commit ff6cbb2 into python:main

May 7, 2024

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

Reviewers

@colesbury colesbury colesbury approved these changes

@ericsnowcurrently ericsnowcurrently Awaiting requested review from ericsnowcurrently ericsnowcurrently 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