2 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: src/cmd/compile/internal/types2/named.go
Insertions: 25, Deletions: 9.
The diff is too large to show. Please review the diff.
```
```
The name of the file: src/go/types/named.go
Insertions: 25, Deletions: 9.
The diff is too large to show. Please review the diff.
```
go/types, types2: in resolveUnderlying, only compute path when needed
When following a RHS chain, the (TypeName) Object path is only needed
when there is a cycle (i.e., an error), in which case we can be slow.
Rather than always compute the path, only compute it in the error case.
In the same vain, allocate the seen map lazily, only when needed.
This code could use a test (it doesn't seem to be encountered by our
test suite), but I haven't found a case to provoke the error yet.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |