Fork me on GitHub
#adventofcode
<
2020-12-23
>
holymackerels05:12:23

I'm about a week behind, trying to play catch up, but I managed to get my day 15 solution down to ~1.7s, my first solution took like 5 minutes

πŸ‘ 1
holymackerels05:12:50

ah I found the thread πŸ‘€

alekszelark17:12:07

About Day 20: β€œI might be able to improve this code, but I have no desire to look at it again any time soon.” Found it in one’s notes.

πŸ˜‚ 4
rjray18:12:50

I resemble that remark πŸ™‚.

πŸ’― 1
misha19:12:58

projected time: 22minutes harold

misha19:12:44

"Elapsed time: 912366.338705 msecs", 15 minutes, with array as a continer.

πŸ‘ 1
misha19:12:15

"Elapsed time: 28510.814642 msecs", 28 seconds, with transient map lol

misha19:12:07

"Elapsed time: 13782.338101 msecs", 13 seconds with java.util.HashMap

Average-user22:12:20

I'm surprised by the lack of intcode this year. Maybe tomorrow?

rjray23:12:05

How odd. I tried re-writing my algorithm to use int-array as @misha does in the 7-second version. It's taking several times longer to run than my vector-based original. I must have something subtle that's wrong in it.

rjray23:12:07

Well, that's an improvement. I went from 32 seconds to 26 minutes.