minor optimisation to reduce unnecessary allocations
This commit is contained in:
@@ -25,7 +25,7 @@ pub fn run_emulator(
|
|||||||
let mut running = Running::Paused;
|
let mut running = Running::Paused;
|
||||||
let mut step = 0;
|
let mut step = 0;
|
||||||
let mut addr;
|
let mut addr;
|
||||||
let mut history = Vec::<(u32, Instruction)>::new();
|
let mut history = Vec::<(u32, Instruction)>::with_capacity(32768);
|
||||||
let size = 256;
|
let size = 256;
|
||||||
|
|
||||||
state_tx
|
state_tx
|
||||||
|
|||||||
Reference in New Issue
Block a user