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)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more