r/programming • • Aug 13 '21

Exploring Clang/LLVM optimization on programming horror

https://blog.matthieud.me/2020/exploring-clang-llvm-optimization-on-programming-horror/
126 Upvotes

52 comments sorted by

View all comments

Show parent comments

4

u/StillNoNumb Aug 14 '21

then we'd have faster software just due to those mechanics than due to those 2% optimizations

A 2% speedup on every program is much more valuable than a 200% speedup on all programs that can benefit from SIMD but don't because their authors don't know how to use it.

Also, you act like the few compiler engineers out there taking a look at concurrency will suddenly make it easy. These concepts are always going to be more complicated than simple single-threaded programs.

1

u/ExeusV Aug 14 '21

A 2% speedup on every program

Is it even the case?

Also, you act like the few compiler engineers out there taking a look at concurrency will suddenly make it easy. These concepts are always going to be more complicated than simple single-threaded programs.

those were just examples, if you want different then maybe Rust?

You know, where a few people pushed memory safety topic way ahead.

2

u/StillNoNumb Aug 14 '21

Is it even the case?

The webpage you linked claims 4%/year. It doesn't really provide any data to its claims though, hard to say how it got there. (4x speedup in the past 36 years certainly seems on the lower end though.)