As far as I know, yes. It's mostly about work the compiler has to do, which results in longer compile times. We want fast compilers. A compiler that deliberately creates non-required objects just so the optimizer can throw them away will not be as fast as the one that creates only what is required.
Thank you. Are the contents of your videos also applicable to MSVC?
As far as I know, yes. It's mostly about work the compiler has to do, which results in longer compile times. We want fast compilers. A compiler that deliberately creates non-required objects just so the optimizer can throw them away will not be as fast as the one that creates only what is required.