swiftlang / swift-corelibs-foundation

The Foundation Project, providing core utilities, internationalization, and OS independence
swift.org
Apache License 2.0
5.29k stars 1.13k forks source link

[SR-5443] String.data(using:) could be much faster #3833

Open phausler opened 7 years ago

phausler commented 7 years ago
Previous ID SR-5443
Radar None
Original Reporter @phausler
Type Bug
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Foundation | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 01cb969f92a53f246f9a0a07038ad533

Issue Description:

See the benchmarks here:

http://swift.sandbox.bluemix.net/#/repl/596656240524853a4527b2cb

This applies primarily to Darwin platforms (linux is not as much of a win in the case of UTF16 backing)

phausler commented 7 years ago

https://github.com/apple/swift/pull/10902