Slide 192
Slide 192 text
Locality of Reference
“Locality of reference is a term for the phenomenon in which the same
values, or related storage locations, are frequently accessed, depending on
the memory access pattern.”
This means that when you load that first myX variable into memory, that is
not the only thing loaded into memory, because the computer is guessing
that you also need the values that are stored after the value. So it loads a lot
of the memory that comes after that variable.