My #AdventOfCode Day 8 was my quickest runtime so far.
=> More informations about this toot | More toots from 0x1ac@techhub.social
@0x1ac Very nice! Day 1 and day 8 are very close for me! You’re making me think I need to revisit day 4!
=> More informations about this toot | More toots from teotwaki@mastodon.online
@teotwaki Good times there. I see you time both parts separately. I always time them in total because I often find it useful to modify my Part 1 solution to track some additional bookkeeping that's useful for Part 2. So I can't split out what time is spend on only one part. So I time everything including reading the input and all the implementation of 1 & 2.
=> More informations about this toot | More toots from 0x1ac@techhub.social
@0x1ac Yeah, I used to do that as well. For this year’s “harness” I decided to split the two, and count the IO/parsing as part of the timing.
So both parts parse from scratch, without re-using data. This makes me re-use functions instead of re-using data.
I do have some notes written down about maybe allowing step1 to hand over data to step2 somehow. I just want something practical when writing the code, and this is.
=> More informations about this toot | More toots from teotwaki@mastodon.online This content has been proxied by September (3851b).Proxy Information
text/gemini