September 6, 2026
How Swift’s Copy-on-Write Breaks Down Under Nested Value Type Mutation
The Performance Regression You Didn’t Profile For Last quarter, a team I was advising shipped what looked like an innocent feature: a local cache of Document structs, each containing an array of Section structs, each containing an array of Paragraph structs. Three layers of value types, each with its own Array storage. The team assumed