cmd/compile: ~19% of kubernetes build time is Type.HasShape1 on dev.typeparams #47456
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
With kubernetes v1.21.1 (5e58841cce77d4bc13713ad2b91fa0d961e69192) and latest Go dev.typeparams (4a47e40), according to
perf report
we're now spending about 19% of total build time within cmd/compile/internal/types.(*Type).HasShape1.Within a checkout of github.com/kubernetes/kubernetes, run:
(Nothing special about kubernetes or v1.12.1; just what I happened to have handy and was using for profiling unified IR when I noticed Type.HasShape1.)
I know the GC shape code is new and likely to undergo a lot of changes in the near future anyway; but since this is a build performance impact that already affects normal, non-generics-enabled builds, I thought I'd mention it.
/cc @randall77 @danscales
The text was updated successfully, but these errors were encountered: