Avoid unnecessary branch in CultureAwareComparer (dotnet/coreclr#9767)
authorJustin Van Patten <jvp@justinvp.com>
Fri, 24 Feb 2017 19:08:08 +0000 (11:08 -0800)
committerStephen Toub <stoub@microsoft.com>
Fri, 24 Feb 2017 19:08:08 +0000 (14:08 -0500)
commitad385bbcb1d17708f2597e74f44ec83d36b4e8a5
tree77712afea9f36efab7f47efb2c90d78ebc967db6
parent600e6783f010eb47b890b0ad94fde6163684c0cf
Avoid unnecessary branch in CultureAwareComparer (dotnet/coreclr#9767)

* Avoid unnecessary branch in CultureAwareComparer

Determine the CompareOptions up-front instead of during each operation.

Commit migrated from https://github.com/dotnet/coreclr/commit/dc6b30e1b5d6fb2cb3aee084868c573c204a8338
src/coreclr/src/mscorlib/src/System/StringComparer.cs