Re:Go 1.21 Released
by 38 on Tuesday August 08, 2023 @07:54PM
(#37057050)
PGO is opt in, just like Rust. you have to explicitly tell the compiler that you want to use it.
[ Parent
| on HN ]
Re:Go 1.21 Released
by yencabulator on Saturday August 12, 2023 @05:23PM
(#37104350)
Go1.21 uses PGO by default, if the file default.pgo exists.
> The -pgo build flag now defaults to -pgo=auto, and the restriction of specifying a single main package on the command line is now removed. If a file named default.pgo is present in the main package's directory, the go command will use it to enable profile-guided optimization for building the corresponding program.