GeezerVison is showing github.com — gh-104909: Split more LOAD_ATTR specializations by gvanrossum · Pull Request #110317 · python/cpython
Conversation
gvanrossum
commented
Oct 3, 2023
•
edited by bedevere-app
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Split the following LOAD_ATTR specializations:
LOAD_ATTR_NONDESCRIPTOR_NO_DICT
LOAD_ATTR_METHOD_LAZY_DICT
LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES
LOAD_ATTR_CLASS
LOAD_ATTR_WITH_HINT
LOAD_ATTR_MODULE
This also contains a cosmetic fix regarding the indentation of DEOPT_IF() macros.
The following two are the only LOAD_ATTR specialization that aren't split up yet:
LOAD_ATTR_PROPERTY (looks complicated)
LOAD_ATTR_GETATTRIBUTE_OVERRIDDEN (not used in the benchmark)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Oh. Test failures: test_bz2 and test_lzma. Bisecting.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
I'm not sure I believe it, but the benchmarks say tthis is 1% faster:
Geometric mean: 1.01x faster (HPT: reliability of 99.88%, 1.00x faster at 99th %ile)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Looks good.
Not too many instructions left to convert now.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this pull request
Sep 2, 2024
* Split LOAD_ATTR_MODULE
* Split LOAD_ATTR_WITH_HINT
* Split _GUARD_TYPE_VERSION out of the latter
* Split LOAD_ATTR_CLASS
* Split LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES
* Fix indent of DEOPT_IF in macros
* Split LOAD_ATTR_METHOD_LAZY_DICT
* Split LOAD_ATTR_NONDESCRIPTOR_NO_DICT
* Fix omission of _CHECK_ATTR_METHOD_LAZY_DICT
Reviewers
markshannon
Awaiting requested review from markshannon
markshannon is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.