4 ms·
Is that due to the use of PCH in MSVC, so the hotspots only happen if the headers change? What does clang offer in this regard? Is incremental build sufficient
by tmzt 9y ago
Is that due to the use of PCH in MSVC, so the hotspots only happen if the headers change?
What does clang offer in this regard? Is incremental build sufficient?
- DannyBee 9y agoNo, clang offers precompiled headers as well. It's literally things like "parsing large numbers of pragmas is slower in clang because nobody has bothered to optimize it". This is not uncommon for very different codebases. Clang was, for a long time, many times slower at compiling the linux kernel, for example, because the linux kernel headers have a huge amount of inline assembly and nobody ever bothered to optimize the parsing paths for inline assembly. (now somewhat fixed). This is just the very typical "hey, when you change the use cases dramatically, you may need to retune/rethink how certain things are done" I think people just may not realize how wildly different these types of codebases are in what types of statements/things occur.