• roanutil_
    link
    fedilink
    arrow-up
    2
    ·
    5 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).