Commit Graph

7 Commits

Author SHA1 Message Date
Stefan Harmuth
a8a0873eec pre-optimizing the opcode makes p1 take twice the time, but p2 almost twice as fast 2020-12-08 10:51:26 +01:00
Stefan Harmuth
8277dfe0f9 we only need to check the instructions up to the infinite loop - everything else cannot contain the error 2020-12-08 09:43:28 +01:00
Stefan Harmuth
761e3bf975 only check for 'nop' if the check for 'jmp' failes. Saves 0.5ms :) 2020-12-08 09:12:24 +01:00
Stefan Harmuth
b4ff7c58d0 TIL: enumerate() exists; no more manual counting 2020-12-08 09:09:50 +01:00
Stefan Harmuth
aa5ae674ec only int-cast param when needed 2020-12-08 09:04:38 +01:00
Stefan Harmuth
29b0604952 [:] does the same and is minimally faster than .copy() 2020-12-08 06:36:24 +01:00
Stefan Harmuth
aa07b45ba7 day 8 2020-12-08 06:23:43 +01:00