FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Avoid duplicate visit in check_boolean_op() by ilevkivskyi · Pull Request #19515 · python/mypy · GitHub

Repository navigation

Avoid duplicate visit in check_boolean_op() - #19515

Merged
ilevkivskyi merged 1 commit into
python:masterfrom
ilevkivskyi:no-dup-bool-op
Jul 26, 2025
Merged

ilevkivskyi merged 1 commit into
python:masterfrom
ilevkivskyi:no-dup-bool-op

Conversation

Copy link
Copy Markdown
Member

Surprisingly, this simple change gives 0.5-1% perf boost on self-check (for some reasons this is quite hot function).

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Copy link
Copy Markdown
Member Author

This one is kind of trivial/obvious, so I will just go ahead and merge it.

ilevkivskyi merged commit 31adfb4 into python:master Jul 26, 2025
ilevkivskyi deleted the no-dup-bool-op branch July 26, 2025 23:29
This file contains hidden or 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
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


Back | FazBrowse Home | New Git URL