ELI5: Explain Like I'm 5

locality of reference

Locality of Reference is a technique that computers use to speed up their work. When the computer is asked to do something, it needs to find the instructions (or information) it needs to do its job. When the computer uses the Locality of Reference technique, it looks for instructions and information that are close together. That way, it can find things faster. Think of it like looking for something in a room. If you know it's in the corner, it's a lot easier to find than if you don't know where to look. Computers use this technique to work faster and save time.