2

Possible Duplicate:
Prefetching Examples?

In many cases prefetch instructions seem to slow performance on modern machines, because there are typically a few different hardware prefetch units.

Are there any particular cases where it always helps to use prefetch instructions?

Community
  • 1
  • 1
Anthony Blake
  • 5,328
  • 2
  • 25
  • 24
  • 3
    Pretty much whenever the access pattern is non-trivial, but known to the programmer. Here's an example: http://stackoverflow.com/questions/7327994/prefetching-examples That said, the speedups tend to be marginal at best. – Mysticial Oct 30 '12 at 22:24
  • Ahh right, sorry I misread that question. – Anthony Blake Oct 30 '12 at 22:29

0 Answers0