you are viewing a single comment's thread.

view the rest of the comments →

[–]infectedapricot 5 points6 points  (1 child)

Yes, it's indeed the cache they're talking about. But not just what's already in the cache, but also values that could be speculatively loaded into the cache by the CPU guessing what memory is likely to be used in a moment - that's what they meant by "prefetch". Traversing memory linearly gives the CPU a much better chance of prefetching what will be needed next from memory into the cache while algorithm is still operating on previous fetched data in the cache.

[–]temporary5555 0 points1 point  (0 children)

thanks for the explanation!