Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize type parameter checks in subtype checking #14324

Merged
merged 1 commit into from
Dec 20, 2022
Merged

Commits on Dec 20, 2022

  1. Optimize type parameter checks in subtype checking

    Avoid the use of a nested function, which are a bit slow when compiled
    with mypyc. Also avoid a callable value and instead call a function
    directly, which allows using faster native calls.
    
    Based on a quick experiment, this speeds up self check by about 3%.
    
    This addresses some of the slowdown introduced in #13303.
    JukkaL committed Dec 20, 2022
    Configuration menu
    Copy the full SHA
    bdb32f7 View commit details
    Browse the repository at this point in the history