-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Removes redundant buffer zeroing in Metal.swift by using init(unsafeUninitializedCapacity:initializingWith:)
#30133
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
Removes redundant buffer zeroing in Metal.swift by using init(unsafeUninitializedCapacity:initializingWith:)
#30133
Conversation
init(unsafeUninitializedCapacity:initializingWith:)
@lorentey this is a change against the Metal overlay. What is the best way to review and incorporate these kinds of changes? |
ping |
@lorentey any news here? |
@swift-ci test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This looks good to me.
Build failed |
Ah, it’s missing a call to
|
ping |
1 similar comment
ping |
@swift-ci test |
Build failed |
@lorentey, could you please run tests now? |
@swift-ci test |
In functions
getDefaultSamplePositions
andgetSamplePositions
removes redundant buffer zeroing by usinginit(unsafeUninitializedCapacity:initializingWith:)
instead ofinit(repeating:count:)