News for hackers. Stuff that matters.
Re:No sane compiler would optimize atomics (2015) by josephcsible on Monday July 12, 2021 @10:48AM (#27810815)
I think you're severely underestimating how much slower everything would be if compilers weren't allowed to optimize anymore.
Re:No sane compiler would optimize atomics (2015) by overgard on Monday July 12, 2021 @03:37PM (#27814110)
Here's where I start when I'm optimizing things:

- Does my data fit in cache

- Can I make it fit in cache?

- Have I packed my memory efficiently?

- Am I using the right algorithm?

"Can the compiler inline this" is like 5000 on my list of things I care about. Compiler optimizations are mostly only useful to people who werent paying attention in the first place.

Re:No sane compiler would optimize atomics (2015) by josephcsible on Monday July 12, 2021 @03:47PM (#27814228)
> "Can the compiler inline this" is like 5000 on my list of things I care about. Compiler optimizations are mostly only useful to people who werent paying attention in the first place.

Okay, you're definitely severely underestimating how much slower everything would be if compilers weren't allowed to optimize anymore.

Re:No sane compiler would optimize atomics (2015) by UncleMeat on Tuesday July 13, 2021 @08:29AM (#27820099)
Yeah. For somebody who really cares a lot about cache misses he sure doesn't seem to be concerned about basic things like leaving virtual function calls in place.