Skip to content

GH-123040: Specialize shadowed LOAD_ATTR.#123219

Merged
markshannon merged 12 commits intopython:mainfrom
faster-cpython:specialize-shadowed-load-attr
Aug 23, 2024
Merged

GH-123040: Specialize shadowed LOAD_ATTR.#123219
markshannon merged 12 commits intopython:mainfrom
faster-cpython:specialize-shadowed-load-attr

Conversation

@markshannon
Copy link
Member

@markshannon markshannon commented Aug 22, 2024

This PR specializes LOAD_ATTR for shadowed attributes, where the shadowing doesn't change the attribute.

Stats show a 30% reduction in specialization failures for LOAD_ATTR.

Performance might show a slight speedup, but is more likely just noise.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants