Skip to content
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

<xlocale>: Avoid allocation when comparing two locale values #3250

Merged
merged 2 commits into from
Dec 6, 2022

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Dec 1, 2022

And then the exception specification can be strengthened.

_C_str always returns a non-null pointer to an NTBS, so it's safe to directly pass the result to strcmp.

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner December 1, 2022 09:24
@strega-nil-ms
Copy link
Contributor

Thanks for noticing this!

@StephanTLavavej StephanTLavavej added the performance Must go faster label Dec 2, 2022
@StephanTLavavej StephanTLavavej self-assigned this Dec 5, 2022
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 8086a2b into microsoft:main Dec 6, 2022
@StephanTLavavej
Copy link
Member

Thanks again for finding and improving this! 😺 🎉 ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Must go faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants