-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[stdlib] Uninline float description #20038
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] Uninline float description #20038
Conversation
@swift-ci please test |
@swift-ci please benchmark |
@tbkka I also removed some checks for inf that the C code was already handling. Be nice to remove the NaN check too but that results in more debug-style printing of nan that might not be desirable. |
This would also mean we don't need to export |
This comment has been minimized.
This comment has been minimized.
@swift-ci please benchmark |
@swift-ci please test |
Build comment file:Performance: -O
Code size: -O
Performance: -Osize
Code size: -Osize
Performance: -Onone
How 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 regressions before you merge the PR. Noise: Sometimes the performance results (not code size!) contain false alarms. Unexpected regressions which are marked with '(?)' are probably noise. If you see regressions which you cannot explain you can try to run the benchmarks again. If regressions still show up, please consult with the performance team (@eeckstein). Hardware Overview
|
Build failed |
@swift-ci please clean test linux platform |
Build failed |
Unrelated linux failures need #20036 |
Thanks for doing this! When I initially did this, I was a little alarmed at the amount of inlining going on, but never got back to it.
Regular |
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.
Looks good!
Cool. I'll merge this for now and we can revisit sinking the nan handling later, once it's not inlinable we have flexibility to do that whenever. |
@swift-ci please test linux platform |
* Uninline float description * Uninline _floatNNToString
May help with some code bloat caused by the new string interpolation.