Closed sbp-bvanb closed 1 week ago
Profile-guided optimization (PGO) in Go, introduced in version 1.20+ and refined in 1.21, is a method to improve application performance by using runtime profiles to inform compilation decisions. PGO enables the Go compiler to optimize code based on actual runtime behavior, such as inlining hot functions or reducing unnecessary allocations, potentially yielding performance gains of 2-7% in certain workloads.
Check whether it is enabled by default and otherwise add it to the pipeline.