From 079f59c2bef9dcac59bdc0255d976dd0d0e7a8a9 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Thu, 15 Jan 2026 19:10:20 +0000 Subject: [PATCH] perf: reserve in extend_sorted_vec (#21109) --- crates/trie/common/src/utils.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/trie/common/src/utils.rs b/crates/trie/common/src/utils.rs index 7c1d454a6f..9ee876cada 100644 --- a/crates/trie/common/src/utils.rs +++ b/crates/trie/common/src/utils.rs @@ -40,6 +40,7 @@ where if other.is_empty() { return; } + target.reserve(other.len()); let mut other_iter = other.iter().peekable(); let initial_len = target.len();