minor optimisation to reduce unnecessary allocations

This commit is contained in:
2025-06-28 03:43:20 +01:00
parent 56d2abe17f
commit 05a25447b2
+1 -1
View File
@@ -25,7 +25,7 @@ pub fn run_emulator(
let mut running = Running::Paused;
let mut step = 0;
let mut addr;
let mut history = Vec::<(u32, Instruction)>::new();
let mut history = Vec::<(u32, Instruction)>::with_capacity(32768);
let size = 256;
state_tx