4 ms·
The compiler got a bit slower: https://github.com/golang/go/issues/19386 https://github.com/golang/go/issues/19386 Those numbers are just for my CLs that fix
by lazard 10y ago
The compiler got a bit slower:
https://github.com/golang/go/issues/19386 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:
$ time ./make.bash
real: 45.32s user: 118.67s cpu: 5.85s
$ time GO_GCFLAGS='-l=4' ./make.bash
real: 64.51s user: 167.04s cpu: 7.12s
We'll need to tweak the inlining heuristic to find a good balance between performance, build times, and binary size.
- simonz05 10y agoBut then the compiler gets faster once you compile it with these new improvements. Is that accounted for in the issue?
- Sunset 10y agoPlease have a switch where I can sacrifice build time for maximum possible runtime benefits.
- chriswarbo 10y agoThe compile-time/run-time tradeoff is interesting. Getting the "maximum possible runtime benefits" probably calls for https://en.wikipedia.org/wiki/Superoptimization https://en.wikipedia.org/wiki/Superoptimization :)