Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Precompute into select arms #6212
Precompute into select arms #6212
Changes from all commits
8b5f4d4
859751f
6f4449f
e9c87b7
efde43a
5106fe8
e12d243
55f9c7f
63a843f
959ad86
c69aeb0
b0e861a
c369c8e
35f366e
d88db54
025532a
a61980a
7efd928
8c63b82
6a04aed
9f4a9b7
7654883
2b28e97
3529d6b
a3379ab
4e6b174
0ff3f96
c84e0d6
dde94ae
e825d06
df8d86f
01a1fad
a37cc0c
35984d7
2731967
5b782a5
634db03
135b0ff
a9f0abc
5c2fe38
7460234
fda1434
ae0e419
26f64c3
d56d28b
0cf5b7e
89e50ad
1689d4b
56f49a9
ae59dd9
0792c10
8bd5652
c8f6e0e
b48cefc
65f55b9
51cb246
c1f04e9
d813d65
a7953b9
66c43c7
ceec9d1
e6467ba
5afd4db
c561a39
6ecc7b0
6f4d81e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we essentially have to do twice as much work because we separately evaluate
isValidPrecomputation
andgetConstExpression
? Could we reduce overhead by combining them?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I see what you mean.
isValidPrecomputation
is a quick check that a precomputed result is valid for our purposes here (the actual precomputing happened earlier inprecomputeExpression
). AndgetConstExpression
generates an Expression from a precomputed result. I'm not sure how we could combine those?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I misunderstood what was happening. Disregard!