Skip to content

Optimize error reporting

Compare
Choose a tag to compare
@pborman pborman released this 30 Dec 19:40
· 39 commits to master since this release
edef28d

Optimize length of time it takes to discover an input is bad by no longer using fmt.Errorf, which is quite slow. It now uses a custom error type that formats the string when the Error method is called rather than when generating the error.