mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] String: Fix major perf regression due to extra arc traffic
This commit is contained in:
@@ -358,6 +358,7 @@ extension _StringGuts {
|
||||
|
||||
@_alwaysEmitIntoClient
|
||||
@inline(never)
|
||||
@_effects(releasenone)
|
||||
internal func _slowEnsureMatchingEncoding(_ i: String.Index) -> String.Index {
|
||||
guard isUTF8 else {
|
||||
// Attempt to use an UTF-8 index on a UTF-16 string. Strings don't usually
|
||||
|
||||
Reference in New Issue
Block a user