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 | 876 | January 24, 2024 | |
Help test out ThinLTO! | 52 | 16376 | March 25, 2019 | |
Optimizing by default | 55 | 13898 | March 25, 2019 | |
Compiler Profiling Survey | 25 | 2683 | January 27, 2020 | |
Compile-time plugins: Re-purposing Cargo `[patch]` and proc-macros | 3 | 761 | December 22, 2024 |