Yakov Manshin

Copy-on-Write in Swift

A Cool Thing You Don’t Really Need

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.