Re:No sane compiler would optimize atomics (2015)
by overgard on Monday July 12, 2021 @09:55AM
(#27810299)
To be fair, it's usually like 5% slower. But I also don't usually have control over the flags if I'm writing a library.
[ Parent
| on HN ]
Re:No sane compiler would optimize atomics (2015)
by umanwizard on Monday July 12, 2021 @01:02PM
(#27812457)
I’d be curious to know what benchmarks you’re using on which O0 is only 5% slower. I suspect your program must be almost entirely IO-bound, if this is the case. In that case, Python, Ruby, or shell probably wouldn’t be much slower either.