IT lexicon › Hardware › Memory prefetch

Memory prefetch

Hardware På svenska → Updated: 2026-11-16

Technique where the processor predicts future memory accesses and fills the cache in advance to save latency.

A basic prefetcher watches access patterns. If you read 0x1000 and then 0x1040, it guesses the next access is 0x1080 and loads it before the CPU needs it. Machine-learning-based prefetchers are now standard in high-performance processors.

Prefetch can be helped or hindered by algorithm design. An algorithm that jumps randomly through memory can never be predicted effectively. Developers sometimes use manual __builtin_prefetch() instructions in critical loops, but compiler auto-optimization is often equally good.

← Back to the lexicon