News for hackers. Stuff that matters.
Re:Go-benchmark: Golang benchmarks used for optimizing code by jeffrallen on Wednesday June 20, 2018 @07:18AM (#17354281)
Memory allocation.

Use defer to make code readable. Go code should be readable, so you can figure out if it is correct, and only then should it be fast.

When benchmarking/profiling leads you to a hot spot in the code, rewrite it to remove defers.

There are no comments on this comment yet.