diff --git a/doc/go1.22.html b/doc/go1.22.html index 1ac0e7e6ee..c4337f1fe7 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -219,6 +219,18 @@ defer func() { 14% improvement from enabling PGO.
++ The compiler now interleaves devirtualization and inlining, so interface + method calls are better optimized. +
+ +
+ Go 1.22 also includes a preview of an enhanced implementation of the compiler's inlining phase that uses heuristics to boost inlinability at call sites deemed "important" (for example, in loops) and discourage inlining at call sites deemed "unimportant" (for example, on panic paths).
+ Building with GOEXPERIMENT=newinliner enables the new call-site
+ heuristics; see issue #61502 for
+ more info and to provide feedback.
+