Google has released Go 1.23, the latest version of its popular open source language for systems programming. The update reduces build time when using profile-guided optimization (PGO) and improves performance with PGO on 386 and amd64 architectures, the company said.
Published August 13, six months after Go 1.22, Go 1.23 can be downloaded for multiple platforms including Linux, macOS, and Windows, from go.dev.
Prior to Go 1.23, large builds could see a 100%-plus build time increase from enabling PGO. In Go 1.23, overhead should be in single-digit percentages, Google said. For 386 and amd64 architectures, the compiler will use certain information from PGO to align certain hot blocks in loops to improve performance.the compiler also reduces stack usage for applications. In Go 1.23, build time overhead to building with profile-guided optimization has been significantly reduced. The compiler in Go 1.23 also reduces stack usage for Go applications, accomplishing this by overlapping the stack frame slots of local variables in disjoint regions of a function, according to release notes.