Skip to content

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

Merged
JukkaL merged 1 commit intomasterfrom
mypyc-call-type-alias
Mar 2, 2023
Merged

[mypyc] Use primitives for calls via type aliases#14784
JukkaL merged 1 commit intomasterfrom
mypyc-call-type-alias

Conversation

@JukkaL
Copy link
Copy Markdown
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