r/cpp • • May 10 '20

Make LLVM fast again

https://nikic.github.io/2020/05/10/Make-LLVM-fast-again.html
150 Upvotes

88 comments sorted by

View all comments

Show parent comments

7

u/Myriachan May 10 '20

Compiling often involves opening and reading like 100 header files.

9

u/SkoomaDentist Antimodern C++, Embedded, Audio May 10 '20 edited May 10 '20

And a lot of software originally written on Unix makes some utterly braindead choices since those just didn’t happen to be too costly on those platforms. Just count how many total fork and exec calls across all the sub executions a typical make run performs compared to the actual number of times it needs to run the compiler.

1

u/bumblebritches57 Ocassionally Clang May 11 '20

tbf, make is basically dead these days with Cmake and Ninja be pretty common.

12

u/gcross May 11 '20

That is an odd thing to say given that CMake generates Makefiles by default on unixy platforms.