mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
perf(trie): remove shrink_to_fit calls from SparseSubtrieBuffers::clear (#21630)
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f90b5c8a7f
commit
29072639d6
@@ -3134,19 +3134,10 @@ impl SparseSubtrieBuffers {
|
||||
/// Clears all buffers.
|
||||
fn clear(&mut self) {
|
||||
self.path_stack.clear();
|
||||
self.path_stack.shrink_to_fit();
|
||||
|
||||
self.rlp_node_stack.clear();
|
||||
self.rlp_node_stack.shrink_to_fit();
|
||||
|
||||
self.branch_child_buf.clear();
|
||||
self.branch_child_buf.shrink_to_fit();
|
||||
|
||||
self.branch_value_stack_buf.clear();
|
||||
self.branch_value_stack_buf.shrink_to_fit();
|
||||
|
||||
self.rlp_buf.clear();
|
||||
self.rlp_buf.shrink_to_fit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user