Skip to content

Use simple logical operator in middleware - #226

Merged
jwhitlock merged 1 commit into
mozilla:mainfrom
sevdog:improve-conditions
Jul 8, 2024
Merged

Use simple logical operator in middleware#226
jwhitlock merged 1 commit into
mozilla:mainfrom
sevdog:improve-conditions

Conversation

@sevdog

@sevdog sevdog commented Jun 21, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

@sevdog
sevdog force-pushed the improve-conditions branch from f395c85 to f11be06 Compare July 8, 2024 08:21
@sevdog

sevdog commented Jul 8, 2024

Copy link
Copy Markdown
Contributor Author

Branch rebased.

@stevejalim stevejalim left a comment

Copy link
Copy Markdown
Contributor

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