📈 performance: incrementing PC right after fetch seems to get it under 2900 ms

main
_ 2023-10-04 18:29:58 -05:00
parent cd0cf33dfc
commit a9f3085166
1 changed files with 1 additions and 2 deletions

View File

@ -556,6 +556,7 @@ impl State {
}; };
let i = self.fetch (); let i = self.fetch ();
self.incr_pc ();
match i.opcode () { match i.opcode () {
0x22 => { 0x22 => {
@ -1047,8 +1048,6 @@ impl State {
x => unimplemented! ("{x}"), x => unimplemented! ("{x}"),
} }
self.incr_pc ();
Ok (None) Ok (None)
} }