mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Now we initialize the array buffer from sequences using unsafe pointer arithmetic, which avoids extra retain/release traffic. But since the size of the sequence is not known in advance, we only initialize as much as underestimateCount() promises, and fall back to the slow approach for the tail. Nevertheless, for collections, where the size is known precisely, this technique is suboptimal only by one branch. rdar://20530390 Swift SVN r27380
72 KiB
72 KiB