Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

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

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

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
brandtbucher merged 10 commits intopython:mainfrombrandtbucher:cached-attributes
May 22, 2025

Conversation

brandtbucher
Copy link
Member

@brandtbucherbrandtbucher commentedMay 21, 2025
edited by bedevere-appbot
Loading

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.

@brandtbucherbrandtbucher self-assigned thisMay 21, 2025
@brandtbucherbrandtbucher added the performancePerformance or resource usage labelMay 21, 2025
@brandtbucherbrandtbucher added interpreter-core(Objects, Python, Grammar, and Parser dirs) topic-JIT labelsMay 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);

Choose a reason for hiding this comment

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

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

brandtbucher reacted with confused emoji
@brandtbucherbrandtbucher merged commitec736e7 intopython:mainMay 22, 2025
60 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@Fidget-SpinnerFidget-SpinnerFidget-Spinner left review comments

@tomasr8tomasr8tomasr8 approved these changes

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

Assignees

@brandtbucherbrandtbucher

Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagesprinttopic-JIT
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@brandtbucher@tomasr8@Fidget-Spinner

[8]ページ先頭

©2009-2025 Movatter.jp