.Net Memory Allocations and Performance - Part 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

ความคิดเห็น • 21

  • @shadomer4
    @shadomer4 2 ปีที่แล้ว +1

    You are the kind of mentor I missed in my career clear and always on point Thanx a lot 🙏

  • @abinnouranas5719
    @abinnouranas5719 4 ปีที่แล้ว +7

    Thanks for the videos , this kind of talks is very rare and very important for every developer keep up the good work

    • @Matlus
      @Matlus  4 ปีที่แล้ว +2

      Thank you Anas! Glad you think so.

  • @lifeisgameplayit
    @lifeisgameplayit 2 ปีที่แล้ว +1

    Very interesing and valuable time spent right ;) thanls

  • @tloy1966
    @tloy1966 5 ปีที่แล้ว +2

    WOW, Part I is awesome, Cant wait part II

    • @Matlus
      @Matlus  5 ปีที่แล้ว +3

      Thank you, and love your reaction! This is Part 2 :). Part 1 can be found here th-cam.com/video/aylUPfOVM90/w-d-xo.html

  • @ashishbhui7449
    @ashishbhui7449 3 ปีที่แล้ว

    Hello could you please make video on multi threading applications and how to thread safe application. I really want to go in deep.

  • @vivekkaushik9508
    @vivekkaushik9508 2 ปีที่แล้ว

    I watch at 1.75x and it feels normal talk and when I switch back to 1x it seems awfully slow. Regardsless very insightful video. Thank much!

  • @kurnaPunk
    @kurnaPunk 5 ปีที่แล้ว +1

    Awesome talk! Not sure if you're familiar with Unity's Entity Component System or game programming in general, but if you do it'd be nice to hear your thoughts and analysis, as it's a system that allows for game developers to not worry about the memory layout as it's already optimized under the hood.

    • @Matlus
      @Matlus  5 ปีที่แล้ว

      @Nicholas, Thank you!. I've played with Unity a bit but don't feel qualified to talk about it, I'm afraid. There are a lot of optimizations sure, but the programmer always needs to worry about memory :) "There is no free lunch", as we say.

    • @kurnaPunk
      @kurnaPunk 5 ปีที่แล้ว +1

      @@Matlus yeah for sure. Data-Oriented Design starts to become a trend in the game development world as the hardware is not getting faster, but it's so different from the traditional OO thinking so that's why Unity created this ECS to make it as simple as possible for game devs. While it looks very promising, I wonder if that's a framework that the software development world could utilize as well, or there are some caveats that we don't know yet.

    • @Matlus
      @Matlus  5 ปีที่แล้ว +1

      @@kurnaPunk I haven't spent much time with Unity Nicholas, so your guess is as good as mine. Even in business systems that need super high performance, we tend to do less Object Oriented design, pool/reuse instances...essentially reduce heap allocations and/or reduce garbage collections. In C++ we generally stay far away from OO (primarily virtual methods) and allocations (heap) so as to get the most performance, especially on smaller devices (embedded systems) and phones etc.

  • @firozzaidi5346
    @firozzaidi5346 4 ปีที่แล้ว +2

    Hi sir,
    I have a question on memory allocation.
    When we create an instance of a struct type containing some value type and reference types properties.
    As we know structs get memory allocated on stack, but our struct has reference properties so where they are going to get memory?
    As value types of reference type get memory on heap, will reference types of value type get memory on stack?

    • @Matlus
      @Matlus  4 ปีที่แล้ว +3

      Firoz, in these videos one of the points I was trying to make is that values types are not always allocated on the stack. So when you say, "As we know structs get memory allocated on the stack", I'm not sure how you conclude that. I must be doing something wrong :)
      To answer you question, Reference types types are ALWAYS allocated on the heap. I thought I had made this point clear too :).

  • @VinuP2023
    @VinuP2023 5 ปีที่แล้ว +2

    Thanks for the video. Your subscribers count should go up this year as your are posting awesome videos. Shiv, how can I contact you if I want to s
    get in touch with you?

    • @Matlus
      @Matlus  5 ปีที่แล้ว +1

      I hope so @Vinjay and thank you for your comment. Send me a private message on TH-cam.

    • @Matlus
      @Matlus  5 ปีที่แล้ว +2

      Accept this invitation youtu.be/addme/FdUL1c20kUxg2Q6YyA-QX1bq6slhiA

    • @VinuP2023
      @VinuP2023 5 ปีที่แล้ว +1

      @@Matlus I'm extremely sorry. Somehow missed your invitation. Its expired. Please send me a new one.

    • @Matlus
      @Matlus  5 ปีที่แล้ว +2

      @@VinuP2023 hey @Vinay, TH-cam has removed the ability to make friends and message between friends. I am no longer able invite folks to a conversation or make friends. They say they are removing the feature on September 18 but I longer see the ability. Contact me on LinkedIn at www.linkedin.com/in/shiv-kumar-698376a0

  • @fikrahack
    @fikrahack 2 ปีที่แล้ว

    You have sweeet vois bro thnx

  • @aymaneeljahrani2280
    @aymaneeljahrani2280 5 หลายเดือนก่อน

    Thanks for the videos. Though me wife is strong independent woman and doesn’t make me go buy milk.