cmd/compile: refactor inline interleaving + very high budget for single-called closures #70504
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsFix
The path to resolution is known, but the work has not been done.
Performance
Milestone
Go version
go version devel go1.24-326a0ef883 Thu Nov 21 13:23:03 2024 -0500 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
Tried to get my CLs mailed, tested, and reviewed before the freeze. They are:
first: https://go.dev/cl/630595 cmd/compile: refactor inline interleaving
second: https://go.dev/cl/630696 cmd/compile: use very high budget for once-called closures
They both pass trybots. I've also benchmarked binary text size and bent performance, and they do no harm.
The purpose of the pair of CLs is to address expected rangefunc performance complaints; without aggressive inlining, memory allocation for nested rangefunc loops is somewhat likely. This change recognizes closures that are only called once and gives them a very large inlining budget.
What did you see happen?
Looks like that will be hard. The most apt reviewers are oversubscribed and may not get to them in time.
What did you expect to see?
A freeze exception, if I could.
The text was updated successfully, but these errors were encountered: