Re:Current hardware trends make C++ exceptions harder to jus...
by JoeAltmaier on Tuesday February 22, 2022 @03:48PM
(#30433543)
You're right, the issue is convoluted and nuanced. There are architecture issues, cache sizes and layers to consider, cost of misses and writes, alignment and bus sizes.
Oh for the good ol days when register size was all you had to think about!
Indeed, though I am shocked when people post benchmarks in which they are obviously unaware of this issue. It's why compilers have all those architecture switches.
If I understand your comment correctly: in the case of the posted paper, the compiler optimization issue the author mentioned was a semantics issue, not an architecture issue. If your comment was about optimizing for the multiprocessor case, I apologize.