4 ms·
Why is it surprising that atomic can be optimized?
by andi999 5y ago
Why is it surprising that atomic can be optimized?
- Sharlin 5y agoWriting correct, even if non-optimal, code that uses atomics is already highly non-trivial. Transforming code that uses atomics into more efficient forms while guaranteeing the same behavior is even more non-trivial.
- andi999 5y agoBut is difficult for the programmer not more difficult for the compiler, isn't it?