Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Go-benchmark: Golang benchmarks used for optimizing code. Parent comment
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.
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.