-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[stdlib] add withContiguousStorage to CollectionOfOne #66562
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
base: main
Are you sure you want to change the base?
Conversation
@swift-ci please test |
@swift-ci please test |
@swift-ci please smoke test |
Failed Tests (13): |
The test failures were caused by More detailed backtrace:
which then forwards to
which then forwards to
which led to infinite recursion, causing crashes in the tests above. Since the change is now reverted in |
@swift-ci please test |
@swift-ci please apple silicon benchmark |
Performance (arm64): -O
Code size: -OPerformance (arm64): -Osize
Code size: -OsizePerformance (arm64): -Onone
|
As it says on the tin - conform to
withContiguousStorageIfAvailable
inCollectionOfOne
. Enables (in theory) being able to take fast paths on certain operations.