My day 18 was slow and I wasn't completely certain where it was all coming from, so I dove into Go's profiling stuff. It was super helpful in identifying the problem and giving me easy wins that took runtime from 4.6s/14.4s (part 1/part 2) to 180ms/50ms just from swapping some arrays for maps, which the profile pointed out very clearly.
6 lines
45 B
Plaintext
6 lines
45 B
Plaintext
*.exe
|
|
__debug_bin
|
|
aoc2019
|
|
debug.test
|
|
*.*prof
|