Reduce the stack size of Interactivity at the cost of more allocations

This commit is contained in:
Antonio Scandurra 2023-12-12 11:57:44 +01:00
parent e7094cc98d
commit f312c58b30
3 changed files with 59 additions and 53 deletions

View file

@ -4,7 +4,7 @@ use smallvec::SmallVec;
use std::fmt;
#[derive(Clone, Default, Eq, PartialEq, Hash)]
pub struct KeyContext(SmallVec<[ContextEntry; 8]>);
pub struct KeyContext(SmallVec<[ContextEntry; 1]>);
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
struct ContextEntry {