Using PGO to *partially* optimize for size
⚓ Rust 📅 2025-09-11 👤 surdeus 👁️ 11When running Profile Guided Optimization, I would presume that it would become clear where most of the CPU time is spent. I would like tell the PGO to for example, optimize as much code for size as possible while ensuring that at most 1% of CPU time (as measured by the test run that was profiled) is spent on the code optimized for size. However, I cannot find any information on whether:
- This is a totally standard optimization that is enabled by default.
- This needs to be enabled somehow.
- This is unsupported.
Does anyone know?
3 posts - 3 participants
🏷️ Rust_feed