-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[stdlib] Make _convertConstStringToUTF8PointerArgument transparent #32915
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
[stdlib] Make _convertConstStringToUTF8PointerArgument transparent #32915
Conversation
@swift-ci please test |
@swift-ci please benchmark |
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.
We'll definitely want to change this implementation, but making this @_transparent doesn't prevent that. (And we can also remove the attribute if it turns out we want this to call internal things later.)
I think ideally this intrinsic would be eventually replaced by something that follows a withCString
-style, closure based approach.
Performance: -O
Code size: -O
Performance: -Osize
Code size: -Osize
Performance: -Onone
Code size: -swiftlibsHow to read the dataThe tables contain differences in performance which are larger than 8% and differences in code size which are larger than 1%.If you see any unexpected regressions, you should consider fixing the Noise: Sometimes the performance results (not code size!) contain false Hardware Overview
|
Build failed |
@swift-ci please test macOS platform |
Build failed |
@swift-ci please test linux platform |
Build failed |
@swift-ci please smoke test and merge |
This function not being inlinable prevents optimizing it away, and it doesn't actually access any string internals.