-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Possible bug at when().then().otherwise()
#17405
Comments
The expressions are all evaluated in parallel to increase performance. This means each expression must be valid on its own. |
This is intended. We do more work than needed, but we can do it in parallel. You're seeing an error due to this change: Add |
Thanks! |
If we count cpu cycles we don't do more work than needed. This allows us to vectorize the expressions. If we would execute them concurrently this would be super branchy and not very optimizable. |
Checks
Reproducible example
Log output
Issue description
It seems like the expression inside the
then
is evaluated (but not returned though), although the condition in thewhen
expression is not met.Is this intended? it seems like at least a performance issue, if not logical.
Expected behavior
I would expect to get:
Installed versions
The text was updated successfully, but these errors were encountered: