[swift-evolution] Mutability for Foundation types in Swift

Greg Parker gparker at apple.com
Fri Apr 22 17:05:39 CDT 2016

> On Apr 22, 2016, at 2:36 PM, Charles Srstka via swift-evolution <swift-evolution at swift.org> wrote:
> One comment:
> "In the most common case where a developer does not provide a custom reference type, then the backing store is our existing NSData and NSMutableData implementations. This consolidates logic into one place and provides cheap bridging in many cases (see Bridging for more information).”
> Would it not be more efficient to bridge to the C-based CFData and CFMutableData implementations instead, to avoid the object overhead?

Not necessarily. Foundation often has less overhead than CF nowadays.

Greg Parker     gparker at apple.com <mailto:gparker at apple.com>     Runtime Wrangler

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160422/9fdb3043/attachment.html>

More information about the swift-evolution mailing list