[linker] Use ordinal instead of invariant comparison. (#1025)

Profiled when running the partial static registrar on Xamarin.iOS.dll

Duration before: 1,60s
Duration after:  1,41s
Difference:     -0,19s = -11,9%

Memory usage before: 541.887.736 bytes
Memory usage after:  509.111.944 bytes
Difference:          -32.775.792 bytes = -6,0%

Method calls before: 86.720.379
Method calls after:  63.073.602
Difference:         -23.646.777 = -27,3%
This commit is contained in:
Rolf Bjarne Kvinge 2016-10-28 14:28:02 +02:00 коммит произвёл Sebastien Pouliot
Родитель ab58a1f808
Коммит c6d7a3adec
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -48,7 +48,7 @@ namespace MonoTouch.Tuner {
public MonoTouchResolver ()
{
cache = new Dictionary<string, AssemblyDefinition> (StringComparer.InvariantCultureIgnoreCase);
cache = new Dictionary<string, AssemblyDefinition> (StringComparer.OrdinalIgnoreCase);
}
ReaderParameters CreateParameters (string path)
@ -61,7 +61,7 @@ namespace MonoTouch.Tuner {
public IDictionary ToResolverCache ()
{
var resolver_cache = new Hashtable (StringComparer.InvariantCultureIgnoreCase);
var resolver_cache = new Hashtable (StringComparer.OrdinalIgnoreCase);
foreach (var pair in cache)
resolver_cache.Add (pair.Key, pair.Value);