2 ms·
Even if you know which accesses have a high probability of missing in core or chip cache, it is tricky to write portable software that takes advantage of (switc
by brooksbp 6y ago
Even if you know which accesses have a high probability of missing in core or chip cache, it is tricky to write portable software that takes advantage of (switches/branches to other work) the time it takes between prefetch and data available in L1. It is not just architecture specific, or microarchitecture specific, it's chip specific.
- Const-me 6y agoNot sure I understand your comment. Many things may go wrong, interference from another hardware thread running on the same core, context switches, cache associativity shenanigans, and more. But still, if you prefetch, switch a co-routine so that other one is spending their 100-500 CPU cycles doing something else, then switch back — I would expect statistically significant performance win, at the cost of code complexity.