Word to the wise about golang: the garbage collector is fast. A tight for loop is faster, and can easily bury you and cause an OOM panic.
-
-
I was allocating ~20 bytes there and my logs didn't even get enough time to write "That channel closed early, hmm" before memory exhausted.
-
@patio11 Stupid question, but was the I/O for the log message buffered? - 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.