diff --git a/doc/go1.21.html b/doc/go1.21.html index 970ff47394b7d..9c1383a16f345 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -261,6 +261,25 @@

Runtime

Compiler

+

+ Profile-guide optimization (PGO), added as a preview in Go 1.20, is now ready + for general use. PGO enables additional optimizations on code identified as + hot by profiles of production workloads. As mentioned in the + Go command section, PGO is enabled by default for + binaries that contain a default.pgo profile in the main + package directory. Performance improvements vary depending on application + behavior, with most programs from a representative set of Go programs seeing + between 2 and 7% improvement from enabling PGO. See the + PGO user guide for detailed documentation. +

+ + +

+ PGO builds can now devirtualize some interface method calls, adding a + concrete call to the most common callee. This enables further optimization, + such as inlining the callee. +

+