]> Cypherpunks repositories - gostls13.git/commit
runtime: short-circuit bytes.Compare if src and dst are the same slice
authorKeith Randall <khr@golang.org>
Tue, 25 Aug 2015 03:58:19 +0000 (20:58 -0700)
committerKeith Randall <khr@golang.org>
Sat, 29 Aug 2015 02:43:57 +0000 (02:43 +0000)
commit805e56ef474a8abfc4ec4159bea0c1fb584e67ed
tree566141074bcca0bd500773508bc10a2661b0b181
parentd93f3b5e31c2d95c6237d72b089576a50dacea79
runtime: short-circuit bytes.Compare if src and dst are the same slice

Should only matter on ppc64 and ppc64le.

Fixes #11336

Change-Id: Id4b0ac28b573648e1aa98e87bf010f00d006b146
Reviewed-on: https://go-review.googlesource.com/13901
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
src/runtime/noasm.go