Skip to content

Commit da92506

Browse files
committed
Make DropFirstSequence.makeIterator inline always
Usually this function is inlined anyway. But if it is not (and that can happen), it has a dramatic performance impact. Also, usually code size regresses if this function is not inlined.
1 parent d6b08c3 commit da92506

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/core/Sequence.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ extension DropFirstSequence: Sequence {
495495
public typealias SubSequence = AnySequence<Element>
496496

497497
@inlinable
498+
@inline(__always)
498499
public __consuming func makeIterator() -> Iterator {
499500
var it = _base.makeIterator()
500501
var dropped = 0

0 commit comments

Comments
 (0)