~/talk

The basics of Profile-Guided Optimization (PGO) in Rust

links:none on file
slides:none on file

Shows concrete PGO wins and failures: applying instrumentation PGO and sampling PGO with LLVM tools (llvm-profdata, perf/Intel LBR) yields measured speedups on real workloads, but instrumented binaries can bloat and sometimes slow extreme hot loops (one ClickHouse run slowed ~300×), while sampling gives ~80–90% of instrumentation’s benefit at ~2% runtime overhead. Covers tooling like cargo-pgo, hardware limits (LBR/BSR, no hypervisor support), profile skew, reproducibility issues, an LTO+PGO LLVM bug, and WebAssembly lack of support.

AI-written summary · about

  1. 0:00Profile-Guided Optimization basics
  2. 3:18Ahead-of-Time vs Just-in-Time compilation
  3. 5:45What is PGO
  4. 7:51How PGO optimizes code
  5. 8:12Instrumentation vs Sampling PGO
  6. 10:19Instrumentation PGO caveats
  7. 12:27How Sampling PGO works
  8. 15:19Sampling PGO limitations
  9. 17:49PGO traps and mitigations
  10. 21:03Collecting PGO profiles
  11. 23:34Rust compiler PGO support
  12. 25:21PGO issues in Rust
  13. 26:47PGO across languages
  14. 27:29PGO tools for Rust
  15. 28:30PGO in Rust ecosystem
  16. 29:12Good PGO candidates
  17. 30:15PGO optimization roadmap
  18. 31:18PGO resources
  19. 31:59Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.