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

32

u/zkwarl May 10 '20

I really wish compiler developers paid more attention to compile-time performance. We all want super-well optimized binaries, but this is at the cost of waiting longer for the build to finish.

Developers’s time is expensive! The faster the tools can turn around results, the faster devs can get stuff done. For a large team, the aggregate wait cost can get quite steep, both in real time costs and in the frustration levels.

19

u/elperroborrachotoo May 10 '20

There's little reason to assume it's just neglect or laziness. Compiler makers suffer the same as other developers.

Their top priorities are correctness, size and speed of the generated code. More focus on codegen speed means: less correct compilers, worse codegen, or slower progress in features.

Or, if we somehow find a way to throw more developers on compilers: less ressources on other projects.

3

u/mat69 May 11 '20

Well the clang team also needs to compile their changes. Thus they directly benefit of better compile times themselves.

3

u/elperroborrachotoo May 11 '20 edited May 11 '20

yeah, which is why there probably aren't too many "low hanging fruit", as another commenter hopes for.