-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mypyc] Faster bool and integer conversions (#14422)
Speed up various conversions between bool and integer types. These cases are covered: * `bool(x)` for various types * `int(x)` for `bool` and integer arguments * Implicit coercion from `bool` to an integer type Support both regular `int` values and native int values. (Various small optimizations, including these, together netted a 6% performance improvement in self check.)
- Loading branch information
Showing
11 changed files
with
431 additions
and
41 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
Oops, something went wrong.