[SR-12264] Arrays don't create themselves quickly from sequences that can provide contiguous storage #54692
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Environment
Apple Swift version 5.2 (swiftlang-1103.0.25.1 clang-1103.2.32.5)
Target: x86_64-apple-darwin19.4.0
Additional Detail from JIRA
md5: b871d8aedb40805887ee96b26cf7c2f2
Issue Description:
If I have a sequence that can provide contiguous storage, Array should be able to create itself quickly by using that storage pointer and just copying the elements over. Right now, Array just copies by iterating the iterator. This can be a lot slower when the iterator isn't inlinable.
The text was updated successfully, but these errors were encountered: