84c7f424ba7ac8ff833ed0974fff1befeafda090
Based on a suggestion from @tocchan I converted the total risk map from a Dictionary to an array and things really took off (125ms to 50ms on my machine in Release). And that's with a sub-optimal fill/memset of the array to int.MaxValue (which I couldn't find a better way to do without diving into `unsafe` territory), though that step only takes about 500us with this method anyway, so it's hardly the worst part.
Advent of Code 2021
My solutions to Advent of Code 2021.
Description
Languages
C#
94.8%
JavaScript
3.1%
Rust
1.2%
Go
0.9%