Skip to content

Commit a2cacfe

Browse files
committed
remove logging
1 parent ad071e2 commit a2cacfe

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
@@ -174,8 +174,6 @@ impl<K: StoreKey + Send + Sync, const FAMILIES: usize> WriteBatch<K, FAMILIES> {
174174
let mut new_blob_files = Vec::new();
175175
let shared_error = Mutex::new(Ok(()));
176176

177-
println!("finish write batch");
178-
179177
// First, we flush all thread local collectors to the global collectors.
180178
scope(|scope| {
181179
let mut collectors = [const { Vec::new() }; FAMILIES];
@@ -205,8 +203,6 @@ impl<K: StoreKey + Send + Sync, const FAMILIES: usize> WriteBatch<K, FAMILIES> {
205203
}
206204
});
207205

208-
println!("flushed thread local collectors");
209-
210206
// Now we reduce the global collectors in parallel
211207
let shared_new_sst_files = Mutex::new(&mut new_sst_files);
212208

@@ -235,8 +231,6 @@ impl<K: StoreKey + Send + Sync, const FAMILIES: usize> WriteBatch<K, FAMILIES> {
235231
anyhow::Ok(())
236232
})?;
237233

238-
println!("flushed collectors");
239-
240234
shared_error.into_inner()?;
241235
let seq = self.current_sequence_number.load(Ordering::SeqCst);
242236
new_sst_files.sort_by_key(|(seq, _)| *seq);

0 commit comments

Comments
 (0)