Skip to content

[SR-370] Remove special case Array.extend() for collections #42989

Closed
@gribozavr

Description

@gribozavr
Previous ID SR-370
Radar rdar://problem/21761471
Original Reporter @gribozavr
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug, AffectsABI, Performance
Assignee @airspeedswift
Priority Medium

md5: 1975b6365d6939725f86c751ae2e749c

Issue Description:

SVN r30033 added a special case of Array.extend() (now appendContentsOf) for values that are statically typed as collections. What if the value is typed statically as a sequence (e.g., in generic code), but is dynamically a collection? This method wouldn’t apply, and we have lost performance.

We need to thread this through the generics system properly.

Metadata

Metadata

Assignees

Labels

affects ABIFlag: Affects ABIbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.performancestandard libraryArea: Standard library umbrella

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions