Re:How copying an int made my code 11 times faster
by alexeldeib on Monday February 20, 2017 @12:39AM
(#13684599)
What 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.
[ Parent
| on HN ]
Re:How copying an int made my code 11 times faster
by umanwizard on Monday February 20, 2017 @05:08AM
(#13686026)
I 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.
Re:How copying an int made my code 11 times faster
by alexeldeib on Monday February 20, 2017 @07:29PM
(#13692247)
Ah, my mistake. I thought the OP a bit further up didn't understand the relation of the stack overflow answer to the array question.