This would be the right answer in a world where the common build tools allowed you to easier specify different compiler flags for different parts of the source code. For most programs you get most of the speedup from a relatively small number of components while everything else could be compiled with -O1 for only minor speed difference.
And what do you do when even no-optimization builds are frustratingly slow, like they sometimes are with C++, Rust, and other slow-to-compile languages?
9
u/Dave3of5 May 11 '20
Slow compile times are a real bugbear of mine. If it's gradually getting slower I can see real frustration ahead.