Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[stdlib] GeneralizeArray(unsafeUninitializedCapacity:initializingWith:) for typed throws#83160

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
glessard wants to merge3 commits intoswiftlang:main
base:main
Choose a base branch
Loading
fromglessard:typedThrows-array-init

Conversation

glessard
Copy link
Contributor

Array(unsafeUninitializedCapacity:initializingWith:) (fromSE-0245) had not yet been generalized for typed throws.

This does so, making the generalized version an@_alwaysEmitIntoClient function.
This also makes the prespecializations performed by SwiftOnoneSupport unnecessary.

@glessard
Copy link
ContributorAuthor

@swift-ci please benchmark

@glessard
Copy link
ContributorAuthor

@swift-ci please Apple Silicon benchmark

@glessard
Copy link
ContributorAuthor

@swift-ci please smoke test

@glessardglessard marked this pull request as ready for reviewJuly 17, 2025 22:56
@glessardglessard requested review froma team andeeckstein ascode ownersJuly 17, 2025 22:56
@glessardglessard requested a review fromatrickJuly 17, 2025 22:56
PRESPEC_SYMBOL($sSa28_unsafeUninitializedCapacity16initializingWithSayxGSi_ySryxGz_SiztKXEtKcfCs6UInt16V_Tg5)
PRESPEC_SYMBOL($sSa28_unsafeUninitializedCapacity16initializingWithSayxGSi_ySryxGz_SiztKXEtKcfCs6UInt32V_Tg5)
PRESPEC_SYMBOL($sSa28_unsafeUninitializedCapacity16initializingWithSayxGSi_ySryxGz_SiztKXEtKcfCs6UInt64V_Tg5)
PRESPEC_SYMBOL($sSa28_unsafeUninitializedCapacity16initializingWithSayxGSi_ySryxGz_SiztKXEtKcfCs7UnicodeO6ScalarV_Tg5)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Isn't removing these symbols from libswiftSwiftOnoneSupport an ABI break?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yes it is; I wanted to see whether it shows up in benchmarks, thus the PR.
I haven't been able to make the prespecialization work with the modified symbols, though.

@glessard
Copy link
ContributorAuthor

@swift-ci please smoke test macOS platform

@glessardglessard marked this pull request as draftJuly 18, 2025 17:13
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@eecksteineecksteineeckstein left review comments

@atrickatrickAwaiting requested review from atrick

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@glessard@eeckstein

[8]ページ先頭

©2009-2025 Movatter.jp