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-90997: Shrink the LOAD_GLOBAL caches #102569

Merged
merged 9 commits into from
Mar 11, 2023

Conversation

brandtbucher
Copy link
Member

@brandtbucher brandtbucher commented Mar 9, 2023

Nothing too clever here, just using 16 bits for module versions instead of 32. LOAD_GLOBAL still has no failures after this change.

Benchmarks came back very slightly negative, but I believe that's just noise (the results are being pulled down by several benchmarks known for their instability).

@brandtbucher brandtbucher added performance Performance or resource usage interpreter-core (Objects, Python, Grammar, and Parser dirs) labels Mar 9, 2023
@brandtbucher brandtbucher self-assigned this Mar 9, 2023
@markshannon
Copy link
Member

Looks good.

We will need to change the versioning scheme to reduce the chance of the version number reaching 2**16, but it is reasonable to do this first.

@brandtbucher brandtbucher merged commit 08b67fb into python:main Mar 11, 2023
iritkatriel pushed a commit to iritkatriel/cpython that referenced this pull request Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) performance Performance or resource usage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants