Re:Popular Myths about C++, Part 3
by makomk on Tuesday December 23, 2014 @05:45AM
(#8787610)
Even if each instance of std::sort fits in the instruction cache, it's helping to push some other code elsewhere in the program out of the instruction cache, slowing that code down in the process.
[ Parent
| on HN ]
Re:Popular Myths about C++, Part 3
by humanrebar on Tuesday December 23, 2014 @10:33AM
(#8788499)
If std::sort pushes something out of icache, it's to make room for inlining swaps and compares. I'm skeptical that the other things bumped from icache should be kept hotter.