~/talk

Profile-Guided Optimization (PGO) in Rust: unknown parts

Talkat Rustikon 2025 · on Wednesday, 2025-03-26· [rust, compilers-and-language-design]
links:none on file
slides:none on file

PGO in rustc supports instrumentation PGO and sampling/BRS profiles: instrumentation requires an instrumented build and a final build, inflates binaries (sometimes up to 2×) and can massively slow hot loops (ClickHouse cited), while sampling gives ~80–90% of instrumentation’s quality with ~2% runtime overhead if tuned. Tooling: use perf + llvm-prof converters but BRS (LBR) availability and virtualization are spotty. Practical tips: enable LTO before PGO, use cargo-pgo, commit profiles to VCS for reproducible builds, and consider Yandex Perforator for fleet automation.

AI-written summary · about

  1. 0:00Introduction
  2. 0:45About the speaker
  3. 1:30Profile-guided optimization
~/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.