Skip to content

LOAD_ATTR_WITH_HINT and STORE_ATTR_WITH_HINT have internal branching.  #122616

Closed

Description

@markshannon

https://github.com/python/cpython/blob/main/InternalDocs/adaptive.md describes how specialized instructions should be a series of guards followed by simple, linear code.
Both instructions have two different paths with guards on each path. We should eliminate one of the branches.
Since the instance dictionary is almost certain to have only str keys, we should choose that path.

Linked PRs

Activity

  1. changed the title [-]STORE_ATTR_WITH_HINT has internal branching. [/-] [+]LOAD_ATTR_WITH_HINT and STORE_ATTR_WITH_HINT have internal branching. [/+] on Aug 2, 2024
  2. added a commit that references this issue on Aug 5, 2024
  3. added a commit that references this issue on Aug 7, 2024
  4. hugovk commented on Aug 8, 2024

    @hugovk
    Member

    Triage: closing because the linked PR is merged, please re-open if still needed.

  5. added a commit that references this issue on Aug 22, 2024
  6. scoder commented on Oct 19, 2024

    @scoder
    Contributor

    As already mentioned in the PR, this change introduced behavioural differences, making existing Python code fail with an exception. See cython/cython#6426 (comment)

  7. reopened this on Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions