Uh oh!
There was an error while loading. Please reload this page.
add OSPlatform.macOS, switch to OrdinalIgnoreCase for OSPlatform comparisons - #39209
Conversation
Dotnet-GitSync-Bot
commented
Jul 13, 2020
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Dotnet-GitSync-Bot
commented
Jul 13, 2020
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
jeffhandley
left a comment
There was a problem hiding this comment.
Looks good to me. I'm going to add @jkotas as a reviewer too though; we should wait for his approval before merging.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Uh oh!
There was an error while loading. Please reload this page.
jeffhandley
commented
Jul 14, 2020
Thanks, @adamsitnik and @jkotas! |
I tried to introduce as small overhead as possible.
On Windows, there is basically no difference. On OSX there is no difference for "OSX" (old check), but the "macOS" check takes twice the time because we need two comparisons.
I've added the test cases that were missing in #39005 (ignore case comparison was not enabled then)
Windows
Before:
After:
OSX
Before:
After: