You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sort.Slice uses reflection to avoid the moderate amount of boilerplate required for sort.Sort.
I'm going to close this issue as it not directly actionable. It is not a bug in the sort package (we don't expect sort.Slice to be as fast as sort.Sort) and there are other general bugs about the performance of the reflect package.
What version of Go are you using (
go version
)?1.9.2
Does this issue reproduce with the latest release?
YES
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GORACE=""
What did you do?
What did you expect to see?
sort.Slice as fast as sort.Sort or a little slower than sort.Sort.
What did you see instead?
sort.Sort about 2.6x faster than sort.Slice.
The text was updated successfully, but these errors were encountered: