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
Please answer these questions before submitting your issue. Thanks!
go version
go version devel +6bd63ca 2016-03-06 16:12:33 +0000 linux/amd64
go env
➜ go env GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/oneofone/code/go" GORACE="" GOROOT="/usr/src/go" GOTOOLDIR="/usr/src/go/pkg/tool/linux_amd64" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build035989829=/tmp/go-build -gno-record-gcc-switches" CXX="g++" CGO_ENABLED="1"
struct { sort.Interface } vs struct { a sort.Interface }
BenchmarkEmbeded-8 100 22515496 ns/op 802944 B/op 6 allocs/op BenchmarkEmbededPtr-8 50 22651711 ns/op 802896 B/op 6 allocs/op BenchmarkField-8 100 16229781 ns/op 802875 B/op 4 allocs/op
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
@minux and there's no way during one of the ssa phases to treat an embedded interface as a field?
BTW, embedded structs don't suffer from that http://play.golang.org/p/Gbu20Yr0wj
BenchmarkEmbeded-8 100 16429062 ns/op 802927 B/op 5 allocs/op BenchmarkEmbededPtr-8 100 16391271 ns/op 802881 B/op 5 allocs/op BenchmarkField-8 100 16268886 ns/op 802878 B/op 4 allocs/op
No branches or pull requests
Please answer these questions before submitting your issue. Thanks!
go version
)?go version devel +6bd63ca 2016-03-06 16:12:33 +0000 linux/amd64
go env
)?(Use play.golang.org to provide a runnable example, if possible.)
http://play.golang.org/p/paUFpqwntQ
embedded interfaces being as fast as assigning them to a field.
struct { sort.Interface } vs struct { a sort.Interface }
The text was updated successfully, but these errors were encountered: