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 implementation of TypedDict types for **kwds #14316

Merged
merged 2 commits into from
Dec 20, 2022
Merged

Commits on Dec 19, 2022

  1. Optimize implementation of TypedDict types for **kwds

    The implementation copied lots of callable types even when not using
    the new feature, which was expensive. Now we only generate a copy if a
    callable actually uses TypedDict types for **kwds.
    
    This made self check 7-8% faster (when compiled with -O0).
    
    The original implementation was in #13471.
    JukkaL committed Dec 19, 2022
    Configuration menu
    Copy the full SHA
    9bfc6ae View commit details
    Browse the repository at this point in the history
  2. Also make copy_modified faster

    JukkaL committed Dec 19, 2022
    Configuration menu
    Copy the full SHA
    938df37 View commit details
    Browse the repository at this point in the history