We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go compiler rarely does a good job at removing the interfaces overhead. Here is an example:
func f(buf *bytes.Buffer) { var rw io.ReadWriter = b g(rw) // performs convI2I } //go:noinline func g(r io.Reader) {}
Fixed code:
func f(buf *bytes.Buffer) { var rw = b // just use *bytes.Buffer directly g(rw) // cheaper conversion } //go:noinline func g(r io.Reader) {}
Investigation needed: how often can we improve things?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Go compiler rarely does a good job at removing the interfaces overhead.
Here is an example:
Fixed code:
Investigation needed: how often can we improve things?
The text was updated successfully, but these errors were encountered: