Clang on windows is not well optimized tbh. There are a lot of tricks to make it go faster - but I wish it could be faster out of the box in the future.
How is running on Windows killing its performance? It is a load of compute sandwiched between some basic file IO. And it is a compiler so I would assume it is self hosting and generating basically the same code...
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.
11
u/---sms--- May 10 '20
Totally not my experience with Clang.
Clang is almost 2 times slower than MSVC when I write no C++ code at all:
When I do, it can easily be 20x slower.