But then the compiler gets faster once you compile it with these new improvements. Is that accounted for in the issue?
Please have a switch where I can sacrifice build time for maximum possible runtime benefits.
Re:Mid-stack inlining in the Go compiler
by chriswarbo on Monday March 06, 2017 @05:24PM
(#13806620)
The compile-time/run-time tradeoff is interesting. Getting the "maximum possible runtime benefits" probably calls for https://en.wikipedia.org/wiki/Superoptimization :)
https://github.com/golang/go/issues/19386
Those numbers are just for my CLs that fix stack traces but with mid-stack inlining still off. Turning it on makes builds noticeably slower:
We'll need to tweak the inlining heuristic to find a good balance between performance, build times, and binary size.