[Development] Qt Compilation Speed

Jörg Bornemann joerg.bornemann at qt.io
Tue Jan 4 12:43:29 CET 2022


On 1/3/22 2:40 PM, Lars Knoll wrote:

> One other possible solution to improve compile times is the hack we used 
> 15 years ago in KDE, where we grouped many .cpp files into one 
> compilation unit. There’s however a balance needed here, as it reduces 
> the efficiency of -j, but maybe compiling 4-8 .cpp files as one unit 
> could help.

Please not that the compilation speed decrease affects user projects 
too, not only Qt itself.  Using unity/amalgamated builds for Qt doesn't 
help those.


Cheers,

Joerg


More information about the Development mailing list