I don't have a lot of experience in #Golang, can anyone who does take a look at this code and help me figure out why its memory usage goes up to 12 GB when exposed to traffic.
https://github.com/tootsuite/gamo/blob/master/gamo.go
I've used pprof to try and figure it out, seems like NewImageOps is staying allocated, but I'm not sure why. I sure call Close() on it...
@Gargron It's inside a closure, right? Is that closure kept alive for some reason?