]> Cypherpunks repositories - gostls13.git/commit
go/types: optimize common case in structuralType
authorRobert Findley <rfindley@google.com>
Thu, 18 Nov 2021 00:22:22 +0000 (19:22 -0500)
committerRobert Findley <rfindley@google.com>
Thu, 18 Nov 2021 02:16:39 +0000 (02:16 +0000)
commit353cb71ea29e02a41f77b7576d658de4515e264d
tree0472aae0a870654a225b9a0638d73a6efcb7b13b
parent2463b4fcafbd59998ea4c81b0fd91a697ad02c15
go/types: optimize common case in structuralType

This is a port of CL 363668 from types2 to go/types.

Change-Id: Ic55acb2e27f57c33467cef2f687cd695e092ba6d
Reviewed-on: https://go-review.googlesource.com/c/go/+/364898
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/type.go