Skip to content
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

use short-circuit evaluation in _is_binary_operator #1052

Merged
merged 1 commit into from
Jan 27, 2022
Merged

Conversation

asottile
Copy link
Member

@asottile asottile commented Jan 27, 2022

this improves performance by about 1%

best of 10 (running python3 -m pycodestyle pycodestyle.py pycodestyle.py pycodestyle.py pycodestyle.py pycodestyle.py

  • before: 2.501s
  • after: 2.435s

this improves performance by about 1%
@sigmavirus24 sigmavirus24 merged commit 6678922 into main Jan 27, 2022
@asottile asottile deleted the short-circuit branch January 27, 2022 17:23
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.

None yet

2 participants