[swift-server-dev] HTTPMethod, was: Re: Next HTTP API meeting

Alex Blewitt alblue at apple.com
Thu Mar 23 09:39:18 CDT 2017

> On 23 Mar 2017, at 13:50, Helge Heß via swift-server-dev <swift-server-dev at swift.org> wrote:
> P.S.: Does Swift 4 propose any way to intern strings? That is also a nice way to do this kind of thing and still get decent performance (essentially what Cocoa Swift does for NSNotification names).

Interning only makes sense for reference types, and Swift's String is a value type.

https://developer.apple.com/library/prerelease/content/documentation/Swift/Conceptual/Swift_Programming_Language/StringsAndCharacters.html#//apple_ref/doc/uid/TP40014097-CH7-ID289 <https://developer.apple.com/library/prerelease/content/documentation/Swift/Conceptual/Swift_Programming_Language/StringsAndCharacters.html#//apple_ref/doc/uid/TP40014097-CH7-ID289>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-server-dev/attachments/20170323/7d33b66d/attachment.html>

More information about the swift-server-dev mailing list