Address perf issues
authorStephen Toub <stoub@microsoft.com>
Thu, 5 Oct 2017 21:23:41 +0000 (17:23 -0400)
committerStephen Toub <stoub@microsoft.com>
Fri, 6 Oct 2017 12:27:44 +0000 (08:27 -0400)
commit92408358a76eb9b908b9e9ce317f2386617f64d1
tree2de001948ab96fc920564cdefd6b866a0a96691e
parent78ae3ab5ed9e198599a4577aa6ae73f053ac1c02
Address perf issues

Workaround regressions from the span switch and also fix a few other issues that popped while profiling.

- Specialize Compare{String} methods to take one span and one string
- Ensure frequently called methods get inlined
- Avoid unnecessary writes to a ref
- Avoid unnecessary Math.Pow calls
src/mscorlib/shared/System/Globalization/DateTimeFormatInfo.cs
src/mscorlib/shared/System/Globalization/DateTimeParse.cs
src/mscorlib/src/System/Globalization/CompareInfo.Unix.cs
src/mscorlib/src/System/Globalization/CompareInfo.Windows.cs
src/mscorlib/src/System/Globalization/CompareInfo.cs