Fix perf penalty for creating dictionaries the easy way. (dotnet/coreclr#10855)
authorAtsushi Kanamori <AtsushiKan@users.noreply.github.com>
Mon, 10 Apr 2017 19:43:24 +0000 (12:43 -0700)
committerGitHub <noreply@github.com>
Mon, 10 Apr 2017 19:43:24 +0000 (12:43 -0700)
commit0ae1b8ffc9224d85b99b7e43dbf140254c1e9367
treee0b8ab1f5a66e0ea671aeb068797efcb1c9f6897
parent9983a8447eb57057d8a83341cb58db46080569de
Fix perf penalty for creating dictionaries the easy way. (dotnet/coreclr#10855)

We went to the trouble of mitigating the perf hit
introduced by using randomized string hashing.

I assume that said perf benefit wasn't meant to be denied
to the 90% case where people use the nullary
constructor to create the Dictionary...

Commit migrated from https://github.com/dotnet/coreclr/commit/6c42a52b01960d7689c93398caa06ca5f79e903f
src/coreclr/src/mscorlib/src/System/Collections/Generic/Dictionary.cs