Skip to content

Tier Two Optimizer Eliminate Function Version Guards #119476

Open
@saulshanabrook

Description

@saulshanabrook

Feature or enhancement

Proposal:

Suggested by @brandtbucher at the PyCon sprints

The tier two interpreter currently adds additional function function guards when it doesn't need to. We can use the function watcher to track when the function version changes and only add the first one.

Similar to the issue for type version guards #119258 and the implemented solution #119365

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Activity

added a commit that references this issue on May 28, 2024

GH-119476: Split _CHECK_FUNCTION_VERSION out of _CHECK_FUNCTION_EXACT…

cfcc054
added a commit that references this issue on Jul 11, 2024

pythonGH-119476: Split _CHECK_FUNCTION_VERSION out of _CHECK_FUNCTION…

added a commit that references this issue on Jul 17, 2024

pythonGH-119476: Split _CHECK_FUNCTION_VERSION out of _CHECK_FUNCTION…

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

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @saulshanabrook

      Issue actions

        Tier Two Optimizer Eliminate Function Version Guards · Issue #119476 · python/cpython