@simondev758
  @simondev758
SimonDev | Memory, Cache Locality, and why Arrays are Fast (Data Structures and Optimization) @simondev758 | Uploaded January 2021 | Updated October 2024, 4 days ago.
Why is the first loop 10x faster than the second, despite doing the exact same work?

Follow me on:
Twitter: twitter.com/iced_coffee_dev
Github: github.com/simondevyoutube

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
* Array operations, what's fast and what isn't
* Closing thoughts, why this is important to understand, how this relates to more advanced data structures
Memory, Cache Locality, and why Arrays are Fast (Data Structures and Optimization)Why Linked Lists vs Arrays isn’t a real choiceI Tried Making an FPS Game in JavaScriptExploring a New Approach to Realistic Lighting: Radiance CascadesWhat can “The Simpsons” teach us about Dynamic Programming?Logarithmic Depth Buffers and Problems of Scale (3D World Generation #9)Loading Models (using Three.js) - Both Static and Animated!Three.js Shadows Explained | Tutorial for Beginners! (JavaScript)Blending (using WebGL/Three.js) - And How to Combine Additive and Alpha BlendingRay Marching, and making 3D Worlds with MathThree.js Tutorial on Shaders (beginners)How Games Have Worked for 30 Years to Do Less Work

Memory, Cache Locality, and why Arrays are Fast (Data Structures and Optimization) @simondev758

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER