News for hackers. Stuff that matters.
Re:The software development final exam: Computer Architectur... by alexkus on Tuesday October 09, 2012 @05:29PM (#4634056)
You'll hit it every time given a typical x86 4KB page size and a step of 1024*sizeof(double)=8KB.

I would guess that the example was explicitly contrived so that prefetching would be useless.

Re:The software development final exam: Computer Architectur... by cperciva on Tuesday October 09, 2012 @09:41PM (#4634705)
I would guess that the example was explicitly contrived so that prefetching would be useless.

Yes -- even if prefetching could happen, the first function would be faster than the second, but I thought removing the whole issue of prefetching would simplify the question.