]> Cypherpunks repositories - gostls13.git/commit
cmd/go: replace reflect.DeepEqual with slices.Equal and maps.Equal
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 26 Mar 2024 20:59:41 +0000 (22:59 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 27 Mar 2024 21:58:12 +0000 (21:58 +0000)
commit2e1003e2f7e42efc5771812b9ee6ed264803796c
tree1e70949071ddcf3eb2e63386e36d6083556a57c8
parent0c5612092deb0a50c5a3d67babc1249049595558
cmd/go: replace reflect.DeepEqual with slices.Equal and maps.Equal

All of these maps and slices are made up of comparable types,
so we can avoid the overhead of reflection entirely.

Change-Id: If77dbe648a336ba729c171e84c9ff3f7e160297d
Reviewed-on: https://go-review.googlesource.com/c/go/+/574597
Reviewed-by: Than McIntosh <thanm@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/go/internal/modload/buildlist.go
src/cmd/go/internal/modload/load.go
src/cmd/go/internal/mvs/mvs.go