Re: Swift and Threads
Re: Swift and Threads
- Subject: Re: Swift and Threads
- From: Jens Alfke <email@hidden>
- Date: Mon, 12 Sep 2016 12:08:41 -0700
> On Sep 12, 2016, at 11:11 AM, Quincey Morris <email@hidden> wrote:
>
> My understanding is that pure Swift arrays (that is, *not* bridged NSArrays) are stored as efficiently as C arrays.
It’s not the efficiency of storage I was concerned about; in this case it’s the COW semantics, which can involve the data backing store being moved at the whim of an opaque internal implementation.
If you want just a plain raw array without that sort of behavior, I’m not sure how you would do it in Swift without resorting to UnsafePointer shenanigans.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden