Skip to content

Commit

Permalink
refactor(rust): small change on CWC where we can reuse the old `pusha…
Browse files Browse the repository at this point in the history
…ble_set_bits` and reserve space for `input_exprs` (#16468)
  • Loading branch information
coastalwhite authored May 24, 2024
1 parent c16c69a commit bb1c73c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ pub fn optimize(root: Node, lp_arena: &mut Arena<IR>, expr_arena: &Arena<AExpr>)
let mut has_seen_unpushable = false;
let mut needs_simple_projection = false;

input_schema_inner.reserve(pushable.set_bits());
input_schema_inner.reserve(pushable_set_bits);
input_exprs.exprs_mut().reserve(pushable_set_bits);
*current_exprs.exprs_mut() = std::mem::take(current_exprs.exprs_mut())
.into_iter()
.zip(pushable.iter())
Expand Down

0 comments on commit bb1c73c

Please sign in to comment.