-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mypyc] Intern string literals (#9960)
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.
- Loading branch information
Showing
2 changed files
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters