this post was submitted on 27 Jul 2024
7 points (100.0% liked)

Swift

363 readers
2 users here now

This group focus on the content related to the development of Apple Eco-system software. So feel free to share and talk about, for example;

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] roanutil_@programming.dev 2 points 3 months ago

I can’t look at the source right now, but it’s likely heap. Swift stdlib collections typically use a buffer that is a reference type. The whole ‘copy on write’ thing requires reference types somewhere in the guts (if I remember correctly).