r/adventofcode • u/daggerdragon • Dec 05 '16
SOLUTION MEGATHREAD --- 2016 Day 5 Solutions ---
--- Day 5: How About a Nice Game of Chess? ---
Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag/whatever).
STAYING ON TARGET IS MANDATORY [?]
This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.
edit: Leaderboard capped, thread unlocked!
14
Upvotes
View all comments
Show parent comment
1
u/JakDrako Dec 05 '16
This case is pretty simple to parallelize, the various advantages provided by Tasks (cancellation tokens, etc) are not needed. I did post a VB version before that does the multithreading with Tasks, but the performance was similar. I prefer the simpler implementation in the C# code above.
What seems to slow down my current version is .Net's MD5 provider... I'm playing around with custom implementations and it seems I might be able to get into the low 2 seconds...