-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Optimize println()
overloads added in P3142R0
#4672
Optimize println()
overloads added in P3142R0
#4672
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Thanks! 😻 I pushed a conflict-free merge with |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for figuring out the surprisingly complicated logic needed to make these functions fast! 🚀 😻 💚 |
Fixes #4630.
__std_print_newline_only_to_unicode_console
to the import library to avoid potential branches aroundWriteConsoleW
.sputc
for non-Unicode new line printing forostream
to reduce potential branches.fputc
for non-Unicode new line printing forFILE*
as the function seems to be the simplest for the purpose in UCRT.