Skip to content

Commit c2cc3ee

Browse files
eecksteinairspeedswift
authored andcommitted
stdlib: replace an obsolete initialize function in UnsafeBufferPointer.swapAt with the new one. (#16270)
This brings back performance on stdlib sort because the obsoleted function in UnsafePointer is not inlinable.
1 parent 574e556 commit c2cc3ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/UnsafeBufferPointer.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ extension Unsafe${Mutable}BufferPointer: ${Mutable}Collection, RandomAccessColle
361361
let pj = (_position! + j)
362362
let tmp = pi.move()
363363
pi.moveInitialize(from: pj, count: 1)
364-
pj.initialize(to: tmp, count: 1)
364+
pj.initialize(to: tmp)
365365
}
366366
% end # mutable
367367
}

0 commit comments

Comments
 (0)