Skip to content

Commit

Permalink
make persistent caching not printing so much
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Oct 11, 2024
1 parent 3902b4b commit 4315605
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions turbopack/crates/turbo-tasks-backend/src/lmdb_backing_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,6 @@ impl BackingStorage for LmdbBackingStorage {
meta_updates: Vec<ChunkedVec<CachedDataUpdate>>,
data_updates: Vec<ChunkedVec<CachedDataUpdate>>,
) -> Result<()> {
println!(
"Persisting {} operations, {} task cache updates, {} meta updates, {} data updates...",
operations.len(),
task_cache_updates.iter().map(|u| u.len()).sum::<usize>(),
meta_updates.iter().map(|u| u.len()).sum::<usize>(),
data_updates.iter().map(|u| u.len()).sum::<usize>()
);
let start = Instant::now();
let mut op_count = 0;
let mut tx = self.env.begin_rw_txn()?;
Expand Down Expand Up @@ -336,10 +329,6 @@ impl BackingStorage for LmdbBackingStorage {
tx.commit()
.with_context(|| anyhow!("Unable to commit operations"))?;
}
println!(
"Persisted {op_count} db entries after {:?}",
start.elapsed()
);
Ok(())
}

Expand Down Expand Up @@ -545,6 +534,7 @@ fn serialize_task_data(
let mut serializer = symbol_map.serializer_for(&mut buf).unwrap();
if let Err(err) = serde_path_to_error::serialize(item, &mut serializer) {
if item.is_optional() {
#[cfg(feature = "verify_serialization")]
println!("Skipping non-serializable optional item: {item:?}");
} else {
error = Err(err).context({
Expand Down

0 comments on commit 4315605

Please sign in to comment.