mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This has two advantages: 1. It does not force the Array in memory (to pass it as inout self to the non-inlinable _createNewBuffer). 2. The new _consumeAndCreateNew is annotated to consume self. This helps to reduce unnecessary retains/releases. The change applies for Array and ContiguousArray.
2.5 KiB
2.5 KiB