Make each DispatchNode smaller by allocating more

This commit is contained in:
Antonio Scandurra 2023-12-12 13:16:09 +01:00
parent f312c58b30
commit 385c830bef

View file

@ -26,8 +26,8 @@ pub(crate) struct DispatchTree {
#[derive(Default)] #[derive(Default)]
pub(crate) struct DispatchNode { pub(crate) struct DispatchNode {
pub key_listeners: SmallVec<[KeyListener; 2]>, pub key_listeners: Vec<KeyListener>,
pub action_listeners: SmallVec<[DispatchActionListener; 16]>, pub action_listeners: Vec<DispatchActionListener>,
pub context: Option<KeyContext>, pub context: Option<KeyContext>,
parent: Option<DispatchNodeId>, parent: Option<DispatchNodeId>,
} }