Skip to content

Commit

Permalink
perf: stats create non-zero bounded channels
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Feb 2, 2025
1 parent 7495baa commit 6965c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ impl Args {
let nchunks = util::num_of_chunks(idx_count as usize, chunk_size);

let pool = ThreadPool::new(njobs);
let (send, recv) = crossbeam_channel::bounded(0);
let (send, recv) = crossbeam_channel::bounded(nchunks);
for i in 0..nchunks {
let (send, args, sel) = (send.clone(), self.clone(), sel.clone());
pool.execute(move || {
Expand Down

0 comments on commit 6965c90

Please sign in to comment.