trivial move switch

Signed-off-by: Alex Chi Z <chi@neon.tech>
This commit is contained in:
Alex Chi Z
2023-07-07 15:07:33 -04:00
parent f258f50b76
commit 569ed35c91

View File

@@ -4168,6 +4168,12 @@ impl Timeline {
}
}
const ENABLE_TRIVIAL_MOVE: bool = false;
if !ENABLE_TRIVIAL_MOVE {
deltas_to_compact_layers.extend(std::mem::take(&mut trivial_move_layers));
}
let deltas_to_compact_layers = deltas_to_compact_layers
.into_iter()
.map(|l| self.lcache.get_from_desc(&l))