Memory, Cache Locality, and why Arrays are Fast (Data Structures and Optimization)
Why is the first loop 10x faster than the second, despite doing the exact same work?
Follow me on:
Twitter:
Github:
In this video we talk a bit about memory, the cpu caches (specifically the L1/L2/L3 cache), hardware prefetching, and how all this comes together for arrays. We’ll be covering each of these topics in enough detail for you to get a solid understanding, working through real world examples to help illustrate the point. We’ll talk about the most fundamental data structure, arrays, how they work, what situations they’re great in, and when they suck. We’ll also touch on some algorithmic complexity. Finally, we’ll be talking about why understanding this is important and how this leads in to more advanced topics and data structures.
What’s covered:
* How memory allocation works, memory addresses
* Contiguous memory
* CPU Caches, L1/L2/L3 cache
* Hardware prefetching
*
1 view
161
30
4 years ago 00:04:51 3
CPU Cache Explained - What is Cache Memory?
2 years ago 00:02:03 0
Aida64 cache & memory benchmark Как запустить?
10 years ago 00:03:17 143
Good Game Memory Cache - Little Big Adventure 2: Twinsen’s Odyssey - TX: 24/2/15
6 years ago 02:27:25 0
Computer Architecture - Lecture 3: Cache Management and Memory Parallelism
5 years ago 00:02:05 0
How to Clear Cache Memory in Windows 10 PC [2020]
9 years ago 01:24:38 39
9. Cache-Oblivious Structures II
5 years ago 00:01:13 37
How to clear memory cache in Samsung Tizen OS Smart TV
10 years ago 01:27:22 67
8. Cache-Oblivious Structures I
5 years ago 00:16:01 4
Intel i5-10600K Cache Ratio & RAM Overclock Beats 10900K: How Much Memory Matters
1 year ago 00:03:50 0
(3)_0202_cache_memory_4202_[u+m-s]
6 years ago 00:08:00 2
Virtual Memory: 13 TLBs and Caches
3 years ago 00:09:38 1
Memory, Cache Locality, and why Arrays are Fast (Data Structures and Optimization)