cmd/go: decouple cmd/cover action from build action for "go {build,test} -cover" #60006
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
ToolSpeed
Milestone
This is a feature request issue to track an idea for speeding up "go test -cover" and "go build -cover" slightly in the case where we're building multiple packages.
Currently the "go tool cover" invocation for a given package is lumped into the build action, e.g. the single action invokes first "go tool cover" and then "go tool compile". It might be more efficient to break out the "go tool cover" invocation into its own separate action, then make the build action dependent on that action.
The advantage here is that the "cover" action doesn't have to wait on any of the build action's dependencies (the compiler needs the deps, but the cover tool does not). This would result in increased parallelism in the build and would help speed things up somewhat (subject to constraints on number of packages, number of processors, etc).
The text was updated successfully, but these errors were encountered: