3 ms·
Unless it's a friggin' gigantic loop, instruction cache miss will usually not be the issue there; branch misprediction will. Instruction cache misses are parti
by pbsd 13y ago
Unless it's a friggin' gigantic loop, instruction cache miss will usually not be the issue there; branch misprediction will.
Instruction cache misses are particularly problematic in codebases with many virtual function calls (or plain function pointers in C), which can't be easily prefetched ahead of time.
- deleted 13y ago[deleted]
- octo_t 13y agoI'll admit that branch misprediction will also screw you over, large event loops are sometimes large enough to escape the instruction cache (especially with function inlining)