Тёмный

Deep .NET: Let's Build Our Own ArrayPool with Stephen Toub and Scott Hanselman 

dotnet
Подписаться 301 тыс.
Просмотров 16 тыс.
50% 1

Опубликовано:

 

22 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 78   
@CuriouslyContent
@CuriouslyContent 19 дней назад
What I love about this series is that you have an expert who could, if asked to do so, completely overwhelm most regular developers with technical detail and advanced topics, but you also have a seasoned non-expert (in this area anyway) sitting in to ask questions and explore the knowledge space in a way that is comfortable for most mere mortals.
@mranthonymills
@mranthonymills 19 дней назад
I'm really loving these "let's make a simple version of X so you understand it" videos!
@Rob_III
@Rob_III 19 дней назад
Over an hour of two legends! I'm a simple man, I click, I watch!
@georgepagotelis
@georgepagotelis 17 дней назад
found the comment to like - cheers hahaha
@flygonfiasco9751
@flygonfiasco9751 16 дней назад
Would love to see a similar video going in depth about the GC. Love this duo!
@yohannes2kifle
@yohannes2kifle 19 дней назад
This is fast becoming my favorite series of your channel, and I really loved this episode
@JustinLampe
@JustinLampe 20 дней назад
And the best series continues 🎉
@chrisanders7257
@chrisanders7257 20 дней назад
This is so great. Everytime I watch Stephen I'll learn something new
@justgame5508
@justgame5508 17 дней назад
Locking content next could be really interesting. ConcurrentDictionary, lock, Semaphore, SemaphoreSlim etc. I think most developers (me included) use and take these for granted without really knowing what they’re doing behind the scenes
@henrikstornblom
@henrikstornblom 15 дней назад
These videos are so great and interesting. Thanks.
@egr0eg
@egr0eg 18 дней назад
Great series, clear explanations. Maybe a future episode on how System.Threading.Channels are implemented(comparison with other producer consumer collections) or some concurrent collections internal implementations.
@juanbautista6766
@juanbautista6766 19 дней назад
Just started and already know this gonna be a banger of a video
@frotes
@frotes 19 дней назад
I see Stephen and Scott, I like
@nokkeli
@nokkeli 20 дней назад
That doggo looks sooo relaxed sleeping on the couch
@talwald1680
@talwald1680 20 дней назад
Great, as always! Please schedule these so we know they are coming! Also, I would love a deep dive on Kestral internals and all the great work put into that over the last few years.
@MatteoGariglio
@MatteoGariglio 18 дней назад
Thanks for bringing up this topic! It's very interesting and instructive. I really like the 'Deep Dot Net' video series-there's always so much more to learn and ideas to draw inspiration from. Thanks for organizing it, and special thanks to Stephen for sharing his valuable knowledge!
@ahupond
@ahupond 18 дней назад
So cool to get insights on how the framework actually works, and how it is expected to be used. The internet was definitely lacking content of that level of expertise, and I hope deep dotnet will continue for a long time. So excited to hear there'll be more guests, although I could be listening to Stephen for hours. He did set the standard at quite the level!
@Dustyy01
@Dustyy01 19 дней назад
Finally a new Episode 🎉🔥
19 дней назад
Great episode. Suggestion for topics could be some math stuff like using optimized vectors SIMD etc. I think Tanner Gooding focuses on that area? Or various synchronization mechanisms in .NET (lock/Semaphore/SemaphoreSlim/new System.Threading.Lock.
@RJiiFin
@RJiiFin 18 дней назад
Really like these deep dives! Thank you
@ollhax
@ollhax 19 дней назад
Love this series! It's very interesting (and useful!) to get a glimpse of the inner workings and tradeoffs you talk about. As a game developer I tend to use _a lot_ of pooling, accepting the increased memory use and the sometimes reduced linear performance over having the GC kick in and cause frame drops that are very noticeable for the player. I hope this is a use case that is considered as well :)
@rodrigolima206
@rodrigolima206 7 дней назад
Another very nice explanation, as always. Thanks.
@GuildOfCalamity
@GuildOfCalamity 19 дней назад
Love these roll-your-own videos, keep em coming plz! Small request: Can you use a dark theme? My eyeballs are burning after that.
@VitalyPavluk
@VitalyPavluk 19 дней назад
Wow!! Such an amazing Deep .NET episode... See how the complex stuff is created from simple bricks by Stephen is kind of magic
@JasonBock
@JasonBock 15 дней назад
I love this series. I really enjoy hearing Toub talk about these deep concepts. One request: get Toub a better mic :). Occasionally his voice got really quiet and it was hard to hear what he was saying.
@hahnkev
@hahnkev 19 дней назад
Can't wait for that performance blog post for dotnet 9!
@HG-Dev
@HG-Dev 18 дней назад
I wager many will appreciate the attention given to the issue of analysis paralysis. Perhaps it's for the best that multi-threaded resource sharing largely goes over my head...
@victorchisomnwisu9776
@victorchisomnwisu9776 18 дней назад
didn't know you could do an assignment in a ternary operator. Thanks again for the video. Awesome!
@vyrp
@vyrp 13 дней назад
Assignment is an expression, so you can put it almost anywhere.
@leknyzma
@leknyzma 18 дней назад
I thought you stopped...welcome back Task.Run()
@majixx
@majixx 20 дней назад
Yet another gem!
@DarthAffe
@DarthAffe 18 дней назад
Again a great episode! For the future I'd be really interested in a episode about boxing, as there are some quite hidden pitfalls that can cause high GC pressure. Things like interfaces on value types, equality checks and maybe more common, but non obvious problems? Btw: Really looking forward to the yearly Performance Improvements blog post :)
@CuriouslyContent
@CuriouslyContent 20 дней назад
Always learning from you two! Keep up the great content!
@cccyberfamilydk
@cccyberfamilydk 20 дней назад
Great as usual.
@SohaibHasan
@SohaibHasan 20 дней назад
Very informative! Thank you.
@hafthors
@hafthors 18 дней назад
Awesome content y'all. How about some content on how to diagnose CPU/memory performance problems? Maybe even some heapdump in windbg/sos stuff. Maybe a look under the hood of how .NET heap objects work. Maybe you could pull in Tess or Maoni for that?
@aguilaaudax1362
@aguilaaudax1362 19 дней назад
First time ever Microsoft is actually teaching something
@shanselman
@shanselman 15 дней назад
I’ve been here putting out content for 17 years, I’m gonna go ahead and say that this was not the first time 😂
@gavincampbell1061
@gavincampbell1061 16 дней назад
If the array returned from the pool could be up to almost twice the size requested, I take it when iterating the array we should only ever go up to the length we requested as the rest could be garbage data? Being aware that the array's length is actually the next power of 2 we could populate the full array if we wanted to, but if you did a for loop with the end condition being the array's length, you could exceed your original requested length, which you may not have populated. Sorry if that was mentioned in the video and I missed it. Thanks for the videos, they're really useful and insightful.
@vyrp
@vyrp 13 дней назад
Yes, you need to be careful. That's a common mistake. My tip would be use AsSpan() on the returned pooled array as soon as possible and only working on the span: `var span = arrayFromPool.AsSpan(0, requestedLength);`
@rb9238
@rb9238 19 дней назад
Excellent!
@clashclan4739
@clashclan4739 19 дней назад
We want more topics covered from stephen than others
@barionlp
@barionlp 20 дней назад
can you make a deep dive on how to correctly measure performance? it seems trivial at first but I feel like there are so many things people do wrong when measuring
@mehmetck
@mehmetck 19 дней назад
I listened like Stephen’s dog 😅 We love this series please do more often
@naveenkp7849
@naveenkp7849 20 дней назад
Why can’t we have more of Stephen’s
@禹睿陈-z5i
@禹睿陈-z5i 19 дней назад
Wow!!!!!!!!!!!!!!!!!!!! It's been a century since the last update
@alucard2876
@alucard2876 20 дней назад
Finally!!!
@AmirHosseini-ow6oi
@AmirHosseini-ow6oi 16 дней назад
Amazing ❤
@TodorTsankov-vz3sd
@TodorTsankov-vz3sd 18 дней назад
🎉🎉
@Spirch
@Spirch 14 дней назад
i like it, only issue is there is a lot of small mic cut while talking, if you fix this next time
@gregorifelicio6030
@gregorifelicio6030 19 дней назад
❤❤❤❤
@TheOneAndOnlySecrest
@TheOneAndOnlySecrest 20 дней назад
I would have liked an explanation why default collections like a List do not use ArrayPool. As lists usually grow over time it would be a nice use case for a pool to avoid a lot of allocations or not?
@knkootbaoat6759
@knkootbaoat6759 20 дней назад
thanks for the pools. opps i mean show
@troncek
@troncek 19 дней назад
Dogo at 22:06. :)
@LycosLinz
@LycosLinz 20 дней назад
@StephenToub Around 44:28 in the video, I was wondering, why isn't there an overload like `bool TryRent(int minimumLength, out T[] array)` where you can decide not to allocate at all and use some other slower path that is still significantly faster than allocating a fresh new array?
@programmerstalks7196
@programmerstalks7196 19 дней назад
It's a really awesome topic to bathe in.. 🚿 yeah
@bity-bite
@bity-bite 17 дней назад
19:46 Why not use uint instead?
@mohanrajaloganathan5587
@mohanrajaloganathan5587 19 дней назад
When async call is made for network request, how operating system invokes back dotnet runtime when the network request gets completed? Could you go even deeper and explain, how a normal async httpcall or system timer gets registered with epoll (in linux)? Can you write a simple timer which registers with operating system and gets invoked by operating system?
@vyrp
@vyrp 13 дней назад
In Windows, look for IO Completion Ports (IOCP) and overlapped IO.
@Kitulous
@Kitulous 19 дней назад
33:47 deficiency cores? yes these are definitely what efficiency cores are haha
@gilbertsenyonjo963
@gilbertsenyonjo963 19 дней назад
Hi. At 17:53, what does ??= mean? I cant find it on google
@vyrp
@vyrp 13 дней назад
`a ??= b;` means `if (a is null) a = b;` Search for "C# null-coalescing assignment".
@superpcstation
@superpcstation 17 дней назад
13:40 does anybody know why he assigned the global variable to local first?
@vyrp
@vyrp 13 дней назад
Are you talking about `T? item = _item;`? It's because we need to make _item null before returning. Look at lines 18 and 19 at 13:52.
@dtienloi
@dtienloi 18 дней назад
Copilot completion is distracting…
@vyrp
@vyrp 13 дней назад
Agree
@shawncicoria
@shawncicoria 19 дней назад
good to see the Doodle passed out on the couch. That's where they belong!!!
@deivycode
@deivycode 16 дней назад
Les't talk about GC
@sajadmalik9097
@sajadmalik9097 19 дней назад
Next in the series: - Deep dive into garbage collector. - an even deeper dive into garbage collector. Please... I am really looking forward to this topic.. Anyone else wants to learn GC from @SthephenToub.
@bity-bite
@bity-bite 17 дней назад
19:46 Why not use uint instead?
@vyrp
@vyrp 13 дней назад
My guess would be because int is CLS compliant, while uint is not. That matters while building the standard library and not while building your own library, but I guess Stephen is used to working on the standard library. CLS compliance matters because .NET code can be called by many different languages, some of which might not have the concept of unsigned integer.
Далее
Easily Archive & Publish .NET MAUI apps with VS Code
13:05
The joker favorite#joker  #shorts
00:15
Просмотров 13 млн
NixOS Setup Guide - Configuration / Home-Manager / Flakes
3:01:39
I tried Swift and came out a different person
1:56:59
Просмотров 75 тыс.
Stop Using FirstOrDefault in .NET! | Code Cop #021
12:54