Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from TimelyDataflow/master
Browse files Browse the repository at this point in the history
Seal: Drop chain while feeding data to builder (TimelyDataflow#482)
  • Loading branch information
antiguru authored May 7, 2024
2 parents a3f0f31 + abe18c5 commit 8d077e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/trace/implementations/merge_batcher_col.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,10 @@ where
}
let mut builder = B::with_capacity(keys, vals, upds);

for datum in chain.iter().flat_map(|ts| ts.iter()) {
builder.copy(datum);
for chunk in chain.drain(..) {
for datum in chunk.iter() {
builder.copy(datum);
}
}

builder.done(lower.to_owned(), upper.to_owned(), since.to_owned())
Expand Down

0 comments on commit 8d077e5

Please sign in to comment.