Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mypyc] Speed up in operations for list/tuple (#9004)
When right hand side of a in/not in operation is a literal list/tuple, simplify it into simpler direct equality comparison expressions and use binary and/or to join them. Yields speedup of up to 46% in micro benchmarks. Co-authored-by: Johan Dahlin <johan.dahlin@textual.se> Co-authored-by: Tomer Chachamu <tomer.chachamu@gmail.com> Co-authored-by: Xuanda Yang <th3charlie@gmail.com>
- Loading branch information
1 parent
4fb5a21
commit 8bf770d
Showing
3 changed files
with
234 additions
and
3 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
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