Skip to content

Conversation

@airspeedswift
Copy link
Member

This replaces a number of withUnsafe blocks with use of the .span property. This was introduced in Swift 6.2, so it does require bumping the toolchain version and minimum Mac deployment target.

Some minor performance regressions should be anticipated, as there will now be bounds checks performed where previously these were compiled out with the use of unsafe buffers. These either should be accepted as the cost of memory safety, or investigated to see if tweaks to the code structure could help the compiler eliminate them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant