Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Make each DispatchNode smaller by allocating more

Antonio Scandurra385c830befa1
diff --git a/crates/gpui2/src/key_dispatch.rs b/crates/gpui2/src/key_dispatch.rs
index a1571c09f28..a44987aa39e 100644
--- a/crates/gpui2/src/key_dispatch.rs
+++ b/crates/gpui2/src/key_dispatch.rs
@@ -26,8 +26,8 @@ pub(crate) struct DispatchTree {
#[derive(Default)]
pub(crate) struct DispatchNode {
- pub key_listeners: SmallVec<[KeyListener; 2]>,
- pub action_listeners: SmallVec<[DispatchActionListener; 16]>,
+ pub key_listeners: Vec<KeyListener>,
+ pub action_listeners: Vec<DispatchActionListener>,
pub context: Option<KeyContext>,
parent: Option<DispatchNodeId>,
}