Tencent Cloud Developer
Oct 19, 2023 · Fundamentals
Profile-Guided Optimization (PGO) Principles and Practice in Go and C++
Profile‑Guided Optimization (PGO) collects runtime profiling data to recompile programs for higher performance, reducing branch mispredictions and improving code layout; Go gained built‑in PGO in 1.21 with typical 5 % gains, while C++ sees 15‑18 % QPS improvements and devirtualization benefits, and future work aims at deeper block ordering and register allocation.
CGoPGO
0 likes · 16 min read