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 simple logical operator in middleware #226

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

sevdog
Copy link
Contributor

@sevdog sevdog commented Jun 21, 2024

The usage of all is an overengineering of what can be handled with a simple sequence of and.

Also since all is a function which requires an iterable as the only argument it is much slower than a simple logical operator.

@jwhitlock
Copy link
Member

@sevdog can you rebase or recreate this change on the latest main?

@sevdog
Copy link
Contributor Author

sevdog commented Jul 8, 2024

Branch rebased.

Copy link
Contributor

@stevejalim stevejalim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for the contribution @sevdog

@jwhitlock jwhitlock merged commit 153696e into mozilla:main Jul 8, 2024
9 checks passed
@sevdog sevdog deleted the improve-conditions branch July 8, 2024 14:34
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.

3 participants