]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use typeAndStr directly in signatslice
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 19 Aug 2021 10:01:26 +0000 (17:01 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 20 Aug 2021 16:23:47 +0000 (16:23 +0000)
commit303446395d8bfdd05da8c69f1f3f862e7e7a35db
treeabf44b38711261cabba22c529e2e3260ac39e975
parente9e0d1ef704c4bba3927522be86937164a61100c
cmd/compile: use typeAndStr directly in signatslice

Currently, we store *types.Type in signatslice, then convert it to
typeAndStr during write runtime type process.

Instead, we can just store typeAndStr directly in signatslice when
adding type to signatset. Not a big win, but simplify the code a bit.

Change-Id: Ie1c8cfa5141da32b6ec3ce5844ba150d2765fe90
Reviewed-on: https://go-review.googlesource.com/c/go/+/343529
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/reflectdata/reflect.go