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

[mypyc] Use primitives for calls via type aliases #14784

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Feb 26, 2023

Previously type aliases were looked up from the globals dictionary, even if the target was a primitive type such as list. Now type aliases are treated the same as direct references to types in calls, since type aliases are assumed to be immutable.

This speeds up the deltablue benchmark by about 4%.

Previously type aliases were looked up from the globals dictionary,
even if the target was a primitive type such as list. Now type aliases
are treated the same as direct references to types in calls, since
type aliases are assumed to be immutable.

This speeds up the deltablue benchmark by about 4%.
@JukkaL JukkaL merged commit 90b9a1a into master Mar 2, 2023
@JukkaL JukkaL deleted the mypyc-call-type-alias branch March 2, 2023 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants