possibly found the place where we do all those allocations, will check tomorrow

This commit is contained in:
Christian Schwarz
2024-01-29 20:25:02 +00:00
parent c98215674c
commit 3cd4f8aa59

View File

@@ -785,6 +785,9 @@ impl DeltaLayerInner {
.with_context(|| {
format!("Failed to read blob from virtual file {}", file.file.path)
})?;
// TODO: this one is super costly, it's allocating a Vec<> for the inner Bytes every time.
// That's on avg 200 allocations.
// Can we re-use the Vec from a buffer pool?
let val = Value::des(&reconstruct_state.scratch).with_context(|| {
format!(
"Failed to deserialize file blob from virtual file {}",