The Crucial Performance Tool You Don’t Really Use | Copy-on-Write in Swift | @SwiftBird

preview_player
Показать описание
In this Swift & iOS Basics episode, I explore the copy-on-write mechanism in #Swift. Copy-on-write (CoW) can make value types’ memory usage more efficient by deferring the duplication of data or avoiding it altogether. But copy-on-write is not a silver bullet, and in this video, I explain the important considerations.

You can support the Swift Bird by…

Links:

Chapters:
• 0:00 Intro
• 0:45 What It Does & When You May Want It
• 3:56 Pros & Cons of Copy-on-Write
• 7:09 Implementing CoW for Custom Types
• 13:53 Summary & Outro

The Swift Bird, a Yakov Manshin production 🎞️

#copyonwrite #computermemory #softwareengineering
Рекомендации по теме