Mettle

callee-over-budgetThe callee's body is over the inline size budget

Reported by --explain after a verdict.

mettle explain callee-over-budget

Inlining copies the body into every call site, so a large callee called in ten places makes the program larger and the instruction cache colder. The budget is the line the compiler draws, and --pgo moves that line for callees measured hot.

Fixes

Before printing the @inline advice the report applies it to a scratch copy and re-runs the check, so it never suggests a decorator that a structural guard behind the budget would refuse anyway.

Related