Richard Bucker

Using deferred robs your go program of speed

Posted at — May 22, 2014

The benchmarks RN and even with the latest version of go 1.3 beta it appears that the defer command is slower by significant numbers. Apparently the implementation of the defer command allocates memory which must be garbage collected which actually has performance side effects.Sadly I have a few hundred the first date that must now be re-factored.