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

GH-131798: Optimize cached class attributes and methods in the JIT by brandtbucher · Pull Request #134403 · python/cpython · GitHub

Repository navigation

GH-131798: Optimize cached class attributes and methods in the JIT - #134403

Merged
brandtbucher merged 10 commits into
python:mainfrom
brandtbucher:cached-attributes
May 22, 2025
Merged

brandtbucher merged 10 commits into
python:mainfrom
brandtbucher:cached-attributes

Conversation

brandtbucher commented May 21, 2025 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

This handles _LOAD_ATTR_CLASS, _LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES, _LOAD_ATTR_NONDESCRIPTOR_NO_DICT, _LOAD_ATTR_METHOD_WITH_VALUES, _LOAD_ATTR_METHOD_NO_DICT, and _LOAD_ATTR_METHOD_LAZY_DICT.

Also: clean up a few things I ran into while working on this, and document our symbol lattice.

brandtbucher requested a review from tomasr8 May 21, 2025 04:07
brandtbucher self-assigned this May 21, 2025
brandtbucher added the performance Performance or resource usage label May 21, 2025
brandtbucher requested a review from markshannon as a code owner May 21, 2025 04:07
brandtbucher added interpreter-core (Objects, Python, Grammar, and Parser dirs) topic-JIT labels May 21, 2025
{
// The cached value may be dead, so we need to do the lookup again... :(
if (type && PyType_Check(type)) {
PyObject *lookup = _PyType_Lookup(type, name);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Well this is sad, I would've hoped pure would be able to handle this. But yeah we need to look up again.

brandtbucher merged commit ec736e7 into python:main May 22, 2025
lkollar pushed a commit to lkollar/cpython that referenced this pull request May 26, 2025
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
gostak-dd pushed a commit to gostak-dd/cpython that referenced this pull request Jun 2, 2026
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 sprint topic-JIT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL