Hacker News new | ask | show | jobs
by ANH 5503 days ago
I've seen this "10-20% slower" meme several times, but I've also read several accounts of 10-20% faster runtime performance.

All I know for sure is I compiled my codebase with Clang for the first time yesterday and the compilation time was absurdly short. I thought the compiler was broken. And it enables excellent tools like clang_complete for Vim code completion.

2 comments

It depends on the code - while GCC, being more mature, is typically better at most optimisations, there are a few cases where Clang produces code that is a fair bit faster.

Over time, as Clang gets more mature, it will become more and more on par (or better) than GCC.

Woah, let's not conflate compilation-speed with runtime-speed...
Read carefully and you'll see I was not.
May be but your post was ambiguous wrt its implications. Defensive writing would have had you writing it more carefully about what you meant.
The parent was not intimating what you inferred.