-
Notifications
You must be signed in to change notification settings - Fork 465
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
Eliminate more typ
and arity
calls
#30884
Conversation
@@ -219,7 +219,8 @@ impl Demand { | |||
for expr in exprs { | |||
expr.support_into(&mut columns); | |||
} | |||
columns.retain(|c| *c < input.arity()); |
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.
ouch
69ad6a7
to
893d0d0
Compare
893d0d0
to
50072db
Compare
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.
Looks good (if tedious to have typed up)!
@@ -329,6 +329,8 @@ impl MapFilterProject { | |||
let (mfp, expr) = Self::extract_from_expression(input); | |||
(mfp.project(outputs.iter().cloned()), expr) | |||
} | |||
// TODO: The recursion is quadratic in the number of Map/Filter/Project operators due to |
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 made an issue: https://github.com/MaterializeInc/database-issues/issues/8868.
This is on top of #30881, because it relies on the new variations of
take_safely
.Nightly (subset): https://buildkite.com/materialize/nightly/builds/10717
Motivation
Tips for reviewer
Checklist
$T ⇔ Proto$T
mapping (possibly in a backwards-incompatible way), then it is tagged with aT-proto
label.