Saagar Jha

Ok enough dessert it’s time to eat your vegetables
Screenshot of https://developer.apple.com/videos/play/wwdc2025/308/?time=1709, showing a slide explaining the memory heirarchy on Apple silicon.

Memory hierarchy

1x/1-2 ns: L1 Instruction Cache (192/128 KiB)/L1 Data Cache (128/64 KiB)
4x/4-8 ns: L2 Cache (16/4 MiB)
50x/95ns: Main Memory (6+ GiB)

Michael Critz

(replying to Saagar Jha)

@saagar Oh, boy. Here comes the long explanation about <InlineArray, T> and heap vs stack allocation

Saagar Jha

(replying to Michael Critz)
@pixelscience That’s another video I think (I haven’t watched it yet)