You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go/ssa: speed up TestTypeparamTest by loading tests once
Previously, TestTypeparamTest constructs a go module for each file
under test/typeparam and uses packages.Load to load it. However, the
packages.Load utilizes the 'go list' underlying and it costs a lot.
As a result, this made the test 50x slower.
This change tries to put each file under a separated package
in the same go module so 'go list' will be used only once.
It supports to skip the test if the test/typeparam under GOROOT doesn't
exist.
Fixesgolang/go#70078
Change-Id: I2953709236602f1f6d0b53457ef21bb83561e656
Reviewed-on: https://go-review.googlesource.com/c/tools/+/623135
Reviewed-by: Alan Donovan <[email protected]>
Reviewed-by: Robert Findley <[email protected]>
Auto-Submit: Alan Donovan <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Richard Miller <[email protected]>
0 commit comments