4 ms·
That's interesting, because I ran the benchmarks on that version of Go.
by zachmu 2y ago
That's interesting, because I ran the benchmarks on that version of Go.
- richbell 2y agoThe `err == nil` check was added in April to avoid expensive and unnecessary reflection. Perhaps 1.23, or whichever release that ends up in, would be faster? https://github.com/golang/go/commit/af43932c20d5b59cdffca45406754dbccbb46dfa https://github.com/golang/go/commit/af43932c20d5b59cdffca454...