Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/callgraph/vta: optimize scc type initialization
During type propagation, initial types for an scc are two times stored to a map: once they are computed and the second time when they are saved to the type set of the scc. This CL ensures only one traversal is done. Change-Id: I7f6babae6a1130721c467e33da4f2d23462116d6 Reviewed-on: https://go-review.googlesource.com/c/tools/+/350160 Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Tim King <taking@google.com> Trust: Zvonimir Pavlinovic <zpavlinovic@google.com>
- Loading branch information