Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-12264] Arrays don't create themselves quickly from sequences that can provide contiguous storage #54692

Open
Lukasa opened this issue Feb 24, 2020 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@Lukasa
Copy link
Contributor

Lukasa commented Feb 24, 2020

Previous ID SR-12264
Radar rdar://problem/59724714
Original Reporter @Lukasa
Type Bug
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
Votes 0
Component/s Standard Library
Labels Bug
Assignee None
Priority Medium

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.

@Lukasa
Copy link
Contributor Author

Lukasa commented Feb 24, 2020

@swift-ci create

@swift-ci
Copy link
Collaborator

Comment by Jacob Mao (JIRA)

Can I take this?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

2 participants