Skip to content

[mypyc] Intern string literals #9960

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

Merged
merged 2 commits into from
Jan 24, 2021
Merged

[mypyc] Intern string literals #9960

merged 2 commits into from
Jan 24, 2021

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Jan 24, 2021

This makes us more compatible with CPython, which interns (some)
string literals.

This speeds up some microbenchmarks slightly, by around 0.5-2%.

This may give a bigger speed win when calling functions using
vectorcalls and keyword arguments, but we'll see about that once that's
supported. Vectorcall argument parsing code has a fast path for interned
keyword argument names.

@JukkaL JukkaL merged commit 9e1324d into master Jan 24, 2021
@JukkaL JukkaL deleted the str-intern branch January 24, 2021 16:44
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.

1 participant