Processor caches play a big role in writing performant code. Let's see if we can write a simple Rust function to better understand caches, cache hierarchy, memory-access latency.
# Time codes
00:00:00 processor caches and cache hierarchy
00:12:16 caching with an example
00:17:44 caching results
00:25:53 spatial locality and contiguous memory layouts
00:31:24 Wrap up
#programming #performance #optimization #rust