Skip to content

Avoid duplicate visit in check_boolean_op() #19515

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 1 commit into from
Jul 26, 2025

Conversation

ilevkivskyi
Copy link
Member

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

Copy link
Contributor

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

@ilevkivskyi
Copy link
Member Author

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

@ilevkivskyi ilevkivskyi merged commit 31adfb4 into python:master Jul 26, 2025
20 checks passed
@ilevkivskyi ilevkivskyi deleted the no-dup-bool-op branch July 26, 2025 23:29
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