Skip to content

[SR-7274] More UnsafePointer operations should be @transparent #49822

Closed
@rjmccall

Description

@rjmccall
Previous ID SR-7274
Radar None
Original Reporter @rjmccall
Type Improvement
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Improvement
Assignee @belkadan
Priority Medium

md5: 836bb66959851c430085bd51b2dd3190

relates to:

Issue Description:

Unoptimized code involving UnsafePointers still very frequently results in calls into the library, which in turns forces the compiler to produce type metadata for the generic call.

For example, CommandLine.arguments contains a call to UnsafePointer.advanced(by: ) and therefore a call to get metadata for UnsafePointer<Int8>?. Since this is CommandLine.arguments, this means that we create multiple type metadata at the start of basically every Swift process.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions