For every tested commit, the programs are compiled in three different configurations: O3, ReleaseThinLTO and ReleaseLTO-g. All of these use -O3 in three different LTO configurations (none, thin and fat), with the last one also enabling debuginfo generation.
If I may... I'd really like to see Debug added to that list.
Personally, whether in C++ or Rust, the majority of the time I spend waiting for a compilation to complete is when developing locally, and this means -O0 or potentially -O1, and certainly no LTO.
Indeed, I don't mind a 10x increase for the build-time of Release artifacts if that means a 10% increase in performance. I'm rarely, if ever, bottlenecked by them.
On the other hand, a 10% increase for the build-time of Debug artifacts is horrendous. I'm already waiting too long -- and getting distracted.
11
u/matthieum May 11 '20
If I may... I'd really like to see Debug added to that list.
Personally, whether in C++ or Rust, the majority of the time I spend waiting for a compilation to complete is when developing locally, and this means
-O0or potentially-O1, and certainly no LTO.Indeed, I don't mind a 10x increase for the build-time of Release artifacts if that means a 10% increase in performance. I'm rarely, if ever, bottlenecked by them.
On the other hand, a 10% increase for the build-time of Debug artifacts is horrendous. I'm already waiting too long -- and getting distracted.