3 ms·
No, 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 op
by DannyBee 9y ago
No, 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.