Note that the C++ build process differs significantly enough from that of Rust (in particular wrt compilation unit granularity, which has a strong effect on inlining even with LTO on) that the increased effectiveness of PGO in C++ could be caused by this difference. But that's just a possibility.
Related Topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Add Propeller support to the Rustc compiler | 8 | 842 | January 24, 2024 | |
Help test out ThinLTO! | 52 | 16357 | March 25, 2019 | |
Optimizing by default | 55 | 13862 | March 25, 2019 | |
Compiler Profiling Survey | 25 | 2680 | January 27, 2020 | |
Compile-time plugins: Re-purposing Cargo `[patch]` and proc-macros | 2 | 747 | February 28, 2022 |