Skip to content

Commit

Permalink
perf(rust): Drop probe tables in parallel in new-streaming equi-join
Browse files Browse the repository at this point in the history
  • Loading branch information
orlp committed Dec 19, 2024
1 parent db1684d commit d65c712
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/polars-stream/src/nodes/joins/equi_join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,13 @@ impl ProbeState {
}
}

impl Drop for ProbeState {
fn drop(&mut self) {
// Parallel drop as the state might be quite big.
self.table_per_partition.par_drain(..).for_each(drop);
}
}

struct EmitUnmatchedState {
partitions: Vec<ProbeTable>,
active_partition_idx: usize,
Expand Down

0 comments on commit d65c712

Please sign in to comment.