3 ms·
Go strongly favors a fast compilation over performance gain, which influenced both the language design and implementation. For example, Daniel Lemire pointed ou
by lifthrasiir 3y ago
Go strongly favors a fast compilation over performance gain, which influenced both the language design and implementation. For example, Daniel Lemire pointed out that its inlining strategy is very conservative [1]; inlining unlocks tons of optimization possibilities but also can dramatically affect the compilation time, which is probably why Go did so.
[1] https://lemire.me/blog/2020/06/04/the-go-compiler-needs-to-be-smarter/ https://lemire.me/blog/2020/06/04/the-go-compiler-needs-to-b...
- KingOfCoders 3y agoYes, I know, but then C had optimization levels for compilers for decades. Go could compile fast for development and compile slow for production. But as I've said, even with PGO there is not a lot of gain compared to Rust.