[SR-10283] UTF8View significantly slower than data(using: .utf8) #52683
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
performance
standard library
Area: Standard library umbrella
Environment
macOS 10.14.4 (18E226)
MacBook Pro (15-inch, 2017), 2,8 GHz Intel Core i7, 16 GB 2133 MHz LPDDR3
Apple Swift version 5.0 (swiftlang-1001.0.69.5 clang-1001.0.46.3)
Target: x86_64-apple-darwin18.5.0
Additional Detail from JIRA
md5: 4df4db68bea474803c18008187576259
Issue Description:
As discussed with @milseman on Twitter (https://twitter.com/tomqueue/status/1113180317844746241) I create this issue.
Since Swift 5 now natively uses UTF8 for Strings I'd expect the Test `testPerformanceOfUTF8View` be comparably fast as `testPerformanceOfData` but it's significantly slower.
The text was updated successfully, but these errors were encountered: