Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
richbell
on June 1, 2024
|
parent
|
context
|
favorite
| on:
Go: Sentinel errors and errors.Is() slow your code...
Actually, the `err == nil` check doesn't exist in the latest release. It was added recently, which would explain the significant performance cost. If err is nil, it doesn't return early.
https://github.com/golang/go/blame/adbfb672ba485630d75f8b559...
tommiegannert
on June 1, 2024
[–]
Nice find. This commit:
https://github.com/golang/go/commit/af43932c20d5b59cdffca454...
from April 4.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://github.com/golang/go/blame/adbfb672ba485630d75f8b559...