Status: Tags: #295/cpu/memory Links: Data Memory
Locality
Principles
?
- Programs tend to access recent or near in memory
- Temporal locality
- Accessed data or instructions that are likely to be accessed in the future
- ex) Having a set variable instead of creating new one in each for loop
- Spatial locality
- Close in memory tend to be accessed close together
References:
Created:: 2022-04-08 02:52