Side Table, Object Lifecycle, Unowned Refs | Advanced Memory Management in

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 11

  • @antohasmirnov
    @antohasmirnov 7 месяцев назад +2

    So much better than lots of medium articles, precisely explained!

    • @SwiftBird
      @SwiftBird  7 месяцев назад +1

      Thanks! 🙌🏻
      Actually, I often use the very same Medium posts for my research, adding just a couple things on top. I do some extra fact-checking (and even after that I don’t expect anyone to just trust my word, hence the links in the description). I try to present the data in a more visual format (although I still don’t have enough time to implement _all_ of my ideas). And then, I wrap everything in a cohesive narrative.
      The last part is probably the most important ingredient because (for me, at least) seeing the connections and big picture makes understanding stuff much easier (e.g. weak refs have certain properties for which the side table is needed, and the way the side table works calls for certain object-lifecycle steps). Like, everything affects everything, and I’m trying to untangle those connections 😄

  • @creat-ivo
    @creat-ivo 2 месяца назад +1

    Perfect explanation, keep it up 👏🏻

  • @EgorMikhailov-l1t
    @EgorMikhailov-l1t 9 месяцев назад

    This video is a must indeed! The most condensed and almost clear info I've ever encountered.

  • @marcin3356
    @marcin3356 9 месяцев назад

    Wspaniale przekazana wiedza! Twórz więcej!

  • @guycohen1958
    @guycohen1958 8 месяцев назад

    More of this content ❤

  • @EgorMikhailov-l1t
    @EgorMikhailov-l1t 9 месяцев назад

    Why does an object still remain in memory when in deinited state? From my understanding ARC proxies all the access operations and the only thing it has to deal with to raise exceptions (unowned) or return nil (weak) is a side table.

    • @SwiftBird
      @SwiftBird  9 месяцев назад

      Hi! While the side table keeps track of the all three counts, it acts as a proxy _only_ for weak references. Unowned refs point directly to the object, not the side table. So as long as you have unowned references, you also need to have _something_ at their memory address.

  • @OmarElsaeed-x1k
    @OmarElsaeed-x1k 9 месяцев назад

    💖