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

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).

@github-actions
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