Locality of reference is a phenomenon that can be seen in Computer science. It says that the same value, or the place where it is stored is accessed often. There are two different kinds of locality of reference:

Reasons

[change | change source]

There are many reasons why locality of reference occurs:

Uses

[change | change source]

Programs can be optimised in certain ways, to make them run faster: