# PGO doesn't make your workload fast — it tells the compiler which code is hot and reshapes the entire binary

Original title: PGO or not PGO this is the dilemma. Step 2

> Hacker News story 50090453 · language: en · submitted 2026-10-14
> Web version: https://zeli.app/story/50090453
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 24 · by [hnp9j9qtda](<https://news.ycombinator.com/user?id=hnp9j9qtda>) · 💬 3
[original](<https://www.percona.com/blog/pgo-or-not-pgo-this-is-the-dilemma-step-2/>) · [HN discussion](<https://news.ycombinator.com/item?id=50090453>)

## Summary

Percona's deep dive into Profile-Guided Optimization explains how a two-pass build uses edge-level counters from a training run to drive inlining, branch layout, hot/cold splitting, function reordering, and indirect-call promotion. The key insight: PGO optimizes for control-flow shape, not data values, so broad coverage like MTR can transfer well to production even with different data.

## Key quote

> Crucially, PGO is not 'make the trained workload fast' it's 'tell the compiler which code is hot and which is cold, and let it reshape the whole binary accordingly.'

---

## Cite

- Page: https://zeli.app/story/50090453
- Date: 2026-10-14
- Source: percona.com (https://www.percona.com/blog/pgo-or-not-pgo-this-is-the-dilemma-step-2/)
- Hacker News: https://news.ycombinator.com/item?id=50090453

## Other languages

- zh: https://zeli.app/zh/story/50090453 · markdown: https://zeli.app/zh/story/50090453.md
- ja: https://zeli.app/ja/story/50090453 · markdown: https://zeli.app/ja/story/50090453.md
- ko: https://zeli.app/ko/story/50090453 · markdown: https://zeli.app/ko/story/50090453.md
- de: https://zeli.app/de/story/50090453 · markdown: https://zeli.app/de/story/50090453.md
- es: https://zeli.app/es/story/50090453 · markdown: https://zeli.app/es/story/50090453.md
- ru: https://zeli.app/ru/story/50090453 · markdown: https://zeli.app/ru/story/50090453.md
