Skip to content

Commit 7f14f05

Browse files
committed
remove logging
1 parent a2aa6eb commit 7f14f05

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

turbopack/crates/turbo-persistence/src/compaction/selector.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,6 @@ mod tests {
283283

284284
for _ in 0..100 {
285285
let coverage = total_coverage(&containers, (0, 10000));
286-
println!(
287-
"{containers:#?} coverage: {}, items: {}",
288-
coverage,
289-
containers.len()
290-
);
291286

292287
if coverage > 10.0 {
293288
let config = CompactConfig {
@@ -296,13 +291,9 @@ mod tests {
296291
};
297292
let jobs = get_compaction_jobs(&containers, &config);
298293
if !jobs.is_empty() {
299-
println!("{jobs:?}");
300-
301294
do_compact(&mut containers, jobs);
302295
number_of_compactions += 1;
303296
}
304-
} else {
305-
println!("No compaction needed");
306297
}
307298

308299
// Modify warm keys
@@ -315,7 +306,6 @@ mod tests {
315306
swap(&mut warm_keys[i], &mut keys[j]);
316307
}
317308
}
318-
println!("Number of compactions: {}", number_of_compactions);
319309

320310
assert!(containers.len() < 40);
321311
let coverage = total_coverage(&containers, (0, 10000));

turbopack/crates/turbo-persistence/src/write_batch.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,6 @@ impl<K: StoreKey + Send + Sync, const FAMILIES: usize> WriteBatch<K, FAMILIES> {
184184
let mut new_blob_files = Vec::new();
185185
let shared_error = Mutex::new(Ok(()));
186186

187-
println!("finish write batch");
188-
189187
// First, we flush all thread local collectors to the global collectors.
190188
scope(|scope| {
191189
let mut collectors = [const { Vec::new() }; FAMILIES];
@@ -216,8 +214,6 @@ impl<K: StoreKey + Send + Sync, const FAMILIES: usize> WriteBatch<K, FAMILIES> {
216214
}
217215
});
218216

219-
println!("flushed thread local collectors");
220-
221217
// Now we reduce the global collectors in parallel
222218
let shared_new_sst_files = Mutex::new(&mut new_sst_files);
223219

@@ -247,8 +243,6 @@ impl<K: StoreKey + Send + Sync, const FAMILIES: usize> WriteBatch<K, FAMILIES> {
247243
anyhow::Ok(())
248244
})?;
249245

250-
println!("flushed collectors");
251-
252246
shared_error.into_inner()?;
253247
let seq = self.current_sequence_number.load(Ordering::SeqCst);
254248
new_sst_files.sort_by_key(|(seq, _)| *seq);

0 commit comments

Comments
 (0)