FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-90997: Shrink the `LOAD_GLOBAL` caches by brandtbucher · Pull Request #102569 · python/cpython · GitHub

/ cpython Public

GH-90997: Shrink the LOAD_GLOBAL caches - #102569

Merged
brandtbucher merged 9 commits into
python:mainfrom
brandtbucher:shrink-load-global
Mar 11, 2023
Merged

GH-90997: Shrink the LOAD_GLOBAL caches#102569
brandtbucher merged 9 commits into
python:mainfrom
brandtbucher:shrink-load-global

Conversation

brandtbucher commented Mar 9, 2023
edited
Loading

Copy link
Copy Markdown
Member

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 added performance Performance or resource usage interpreter-core (Objects, Python, Grammar, and Parser dirs) labels Mar 9, 2023
brandtbucher requested a review from markshannon March 9, 2023 22:04
brandtbucher self-assigned this Mar 9, 2023

Copy link
Copy Markdown
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 merged commit 08b67fb into python:main Mar 11, 2023
iritkatriel pushed a commit to iritkatriel/cpython that referenced this pull request Mar 12, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL