3 ms·
I read it a while ago, and going on what I remember, I still can't see the connection. Would you mind explaining?
by Retr0spectrum 10y ago
I read it a while ago, and going on what I remember, I still can't see the connection. Would you mind explaining?
- umanwizard 10y agoI don't think it's related to branch prediction in particular, just spooky action-at-a-distance where a change makes seemingly unrelated code much slower or faster.
- alexeldeib 10y agoWhat makes you say this? The author provides an extremely persuasive case, with perf timings. Additionally updated it with compiler enhancements from GCC and Intel that remove the branch mispredictions entirely and do perform as predicted.
- umanwizard 10y agoI think you misunderstood me. I agree that the StackOverflow post has to do with branch prediction. I just meant that I don't think that's why the earlier poster thinks it's parallel to the situation described in the article.
- alexeldeib 10y agoAh, my mistake. I thought the OP a bit further up didn't understand the relation of the stack overflow answer to the array question.
- deleted 10y ago[deleted]