r/adventofcode • u/terje_wiig_mathisen • 18h ago
Upping the Ante [2019 Day13] [Rust] - hunting for marginal speedups
While I'm waiting for Dec 1st I took a look at this one since it is one of the two slowest days of that year. I write in Rust, so my timings should be comparable to u/maneatingape. Unlike him I have a locally optimized version of my IntCode interpreter, which together with verifying that this particular day works fine with i32 instead of i64 elements have resulted in 1631 vs 2357 us as the benchmark.
https://github.com/TerjeWiigMathisen/aoc/blob/master/2019/day13/src/main.rs
Only 10 more days!