go/src/internal
Josh Bleecher Snyder ca0c449a6b bytes, internal/bytealg: simplify Equal
The compiler has advanced enough that it is cheaper
to convert to strings than to go through the assembly
trampolines to call runtime.memequal.

Simplify Equal accordingly, and cull dead code from bytealg.

While we're here, simplify Equal's documentation.

Fixes #31587

Change-Id: Ie721d33f9a6cbd86b1d873398b20e7882c2c63e9
Reviewed-on: https://go-review.googlesource.com/c/go/+/173323
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-04-24 00:56:36 +00:00
..
bytealg bytes, internal/bytealg: simplify Equal 2019-04-24 00:56:36 +00:00
cpu internal/cpu: change s390x API to match x/sys/cpu 2019-02-28 13:46:45 +00:00
errinternal fmt: make type of fmt.Errorf the same as that of errors.New 2019-03-14 09:45:22 +00:00
fmtsort fmtsort: sort interfaces deterministically 2019-02-28 21:09:49 +00:00
goroot all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
goversion internal/goversion: add new package, move Go 1.x constant there out of go/build 2019-04-19 18:04:35 +00:00
lazyregexp internal/lazytemplate: add a lazy template wrapper 2019-02-27 23:49:01 +00:00
lazytemplate internal/lazytemplate: add a lazy template wrapper 2019-02-27 23:49:01 +00:00
nettrace
oserror os: make errors.Is work with ErrPermission et al. 2019-03-20 16:02:01 +00:00
poll internal/poll: avoid unnecessary memory allocation in Writev 2019-04-17 00:05:41 +00:00
race
reflectlite sort, internal/reflectlite: flesh out reflectlite enough for use by sort 2019-03-27 04:58:23 +00:00
singleflight net: don't let cancelation of a DNS lookup affect another lookup 2018-03-16 13:39:38 +00:00
syscall os: make Readlink work with symlinks with target like \??\Volume{ABCD}\ 2019-03-01 07:44:37 +00:00
testenv internal/testenv: remove SetModVendor 2019-03-08 23:40:24 +00:00
testlog cmd/go: invalidate cached test results if env vars or files change 2017-12-11 19:08:32 +00:00
trace cmd/trace: revert internal/traceparser 2018-11-22 02:59:55 +00:00
xcoff all: fix typos as reported by 'misspell' 2019-02-26 23:02:05 +00:00