Skip to content

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 requested a review from markshannon March 9, 2023 22:04
@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