mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-23 08:00:37 +00:00
possibly found the place where we do all those allocations, will check tomorrow
This commit is contained in:
@@ -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 {}",
|
||||
|
||||
Reference in New Issue
Block a user