Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Thaxll
· 2y ago · 0 comments
Then what? It has 0 performance impact, we're talking about error handling here, it's rare and not in hot path.
Comments
[–]
sidlls
2y ago
It does not have 0 performance impact, it's not rare, and in applications that are in the hot path, error handling is
also
in the hot path.
[–]
Thaxll
OP
2y ago
No, it only executes when you enter the err != nil block so it's almost never called, again 0 impact on performance.