[HN Gopher] Go: Sentinel errors and errors.Is() slow your code d...
___________________________________________________________________
Go: Sentinel errors and errors.Is() slow your code down by 3000%
Author : ingve
Score : 11 points
Date : 2024-05-31 20:12 UTC (2 hours ago)
(HTM) web link (www.dolthub.com)
(TXT) w3m dump (www.dolthub.com)
| leetrout wrote:
| I like posts like this.
|
| I learn something about a tool I love and have used for 10 years
| and it isn't snarky, flamebait nor preachy.
| richbell wrote:
| Am I missing something, or could this be partially mitigated by
| adding a check for `err == nil && target != nil`?
|
| https://github.com/golang/go/blob/9b43bfbc51c469ec13fca24960...
___________________________________________________________________
(page generated 2024-05-31 23:00 UTC)