Span of T vs. Memory of T

5,771
0
2024-02-11に共有
What's the difference between Span of T and Memory of T? My goal is not to tell you how awesome they are, but to get you over the hump of understanding how they work. I cover what they 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.

Blog:
betterwithcode.com/

LinkedIn:
www.linkedin.com/in/jeff-zuerlein-2aa67b7/

00:00 Introduction
00:53 What Are Spans and Memory
01:47 Definition of Span
02:29 Reference Structs
03:40 Fast Spans
04:07 Slow Spans
04:55 Memory of T Definition
05:38 How to use Spans with Memory
07:06 Ownershp / Consumer
09:16 Closing

コメント (10)
  • Great! Thanks. This channel deserves much more subscribers. Please keep up the good work!
  • Before this video I was thinking that I understand C#.... After this video I don't understand even heap and stack :D But thanks for sharing! Great video that pushes me (and pretty sure also other people) to learn new things!
  • @amrswalha
    Nice video with great details, all the best.
  • @bhatsanket
    Really really like the tiitbits you are making... Nowadays because of things I am getting pushed away from programming but these really bring back memories... Ty! Please keep publishing
  • Nice video. Please could you do some videos on collection expression and type aliases, including Vectors and Intrinsics in C#?
  • Turning our code into pretzels to safeguard memory access and housekeeping ... makes me want to return to C++ for the truly low-level work.
  • And there goes yet another major selling point of C# into the garbage collector. Being a native C and C++ speaker this video makes me very happy, as I can now make even more fun of my C# colleagues. From many points of view this span stuff is just hilarious. And, for the record, it is well explained in the video. Nothing wrong with that.