[SR-10095] FloatingPoint.init?<S: StringProtocol>(_ text: S) forces UTF16 conversion #52497
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
good first issue
Good for newcomers
performance
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: 54e7e02e55e8b7d5628f5bba260a1da0
Issue Description:
Under Swift 5, native UTF8 strings are forced to have a UTF16 representation created when used with `FloatingPoint.init(StringProtocol)` (https://github.com/apple/swift/blob/master/stdlib/public/core/FloatingPointParsing.swift.gyb). This is a performance bug; ideally, floating point parsing should not require format conversion.
The text was updated successfully, but these errors were encountered: