DEV Community

Jeff Zuerlein
Jeff Zuerlein

Posted on

What’s the difference between Span<T> and Memory<T>?

The first time I used Span of T and Memory of T, I struggled to understand what the difference was. Don’t struggle, watch my video instead.

My goal is not to tell you how awesome these features are, but to get you over the hump of understanding how they work. I cover what Span and Memory of T do and why, along with some description of their internals. Finally, I discuss what the owner consumer model is, and why it's relevant to Memory of T.

Top comments (0)