r/adventofcode • • Dec 06 '15

SOLUTION MEGATHREAD --- Day 6 Solutions ---

--- Day 6: Probably a Fire Hazard ---

Post your solution as a comment. Structure your post like the Day Five thread.

22 Upvotes

171 comments sorted by

View all comments

Show parent comment

1

u/hutsboR Dec 06 '15

Interesting. Definitely less functional because you're introducing mutable state but it's worth it for concise and faster code. I was considering spawning a process for each coordinate, probably an agent. I don't think the performance gain would be greater than the overhead of spawning a million processes, though.