Skip to content

Commit a10db02

Browse files
authored
Merge pull request swiftlang#21660 from rajbarik/raj-es-perf
Add @inline(__always) to stdlib function for performance parity
2 parents 40d5e7a + fc90a00 commit a10db02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/core/ExistentialCollection.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,7 @@ extension ${Self}: ${SelfProtocol} {
984984
/// - Parameter base: The collection to wrap.
985985
///
986986
/// - Complexity: O(1).
987+
@inline(__always)
987988
@inlinable
988989
public init<C : ${SubProtocol}>(_ base: C) where C.Element == Element {
989990
// Traversal: ${Traversal}

0 commit comments

Comments
 (0)