Go 1.20 previews profile-guided optimization
Go 1.20, an upgrade to the Google-developed open source language known for its simplicity, concurrency, and functional programming features, has arrived in a production release. The new version previews profile-guided optimization (PGO) for the compiler.
Announced February 1, Go 1.20 can be downloaded from go.dev. With Go 1.20, preview support for PGO enables the compiler toolchain to perform application-specific and workload-specific optimizations based on runtime profile data. The compiler currently supports pprof CPU profiles, which can be collected through the
runtime/pprof
ornet/http/pprof
packages.
Author: . [Source Link (*), InfoWorld]