Skip to main content
Caching

Intent

The caching pattern avoids expensive re-acquisition of resources by not releasing them immediately after use. The resources retain their identity, are kept in some fast-access storage, and are re-used to avoid having to acquire them again.

Also known as

  • Cache
  • Temporary Storage

iluwatarAbout 5 minPerformance optimizationCachingPerformanceCloud distributed
Data Locality

Also known as

  • Cache-Friendly Design
  • Data-Oriented Design

Intent

The Data Locality design pattern aims to minimize data access times and improve cache utilization by arranging data in memory to take advantage of spatial locality. This pattern is particularly useful in high-performance computing and game development where access speed is crucial.


iluwatarAbout 3 minPerformance optimizationCachingData accessGame programmingMemory managementPerformance