Go to file
Parnic 84c7f424ba >2x speedup for part 2
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.
2021-12-15 12:15:31 -06:00
2021-12-05 11:19:10 -06:00
2021-12-15 10:50:33 -06:00
2021-12-15 12:15:31 -06:00
2021-12-10 13:46:41 -06:00
2021-12-15 10:50:33 -06:00
2021-12-02 10:03:00 -06:00
2021-12-01 08:00:40 -06:00
2021-12-01 08:00:40 -06:00
2021-12-10 13:46:41 -06:00
2021-12-10 13:46:41 -06:00
2021-12-01 08:03:21 -06:00

Advent of Code 2021

My solutions to Advent of Code 2021.

Description
No description provided
Readme 366 KiB
Languages
C# 94.8%
JavaScript 3.1%
Rust 1.2%
Go 0.9%