Improve Dictionary TryGetValue size/perfomance (dotnet/coreclr#27195)
commitd5b182c6d84cdd288defe1085b6c785927ee175d
authorBen Adams <thundercat@illyriad.co.uk>
Wed, 16 Oct 2019 15:14:17 +0000 (16 16:14 +0100)
committerMarek Safar <marek.safar@gmail.com>
Tue, 22 Oct 2019 13:46:29 +0000 (22 09:46 -0400)
tree7646a7415049a8b9a24bb5e5ef1212847d9d02e6
parent274db87e60b84b9d496f821f45bbda338315b944
Improve Dictionary TryGetValue size/perfomance (dotnet/coreclr#27195)

* Dictionary avoid second bounds check in Get methods

* Add NullRef methods to Unsafe

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
netcore/System.Private.CoreLib/shared/Internal/Runtime/CompilerServices/Unsafe.cs
netcore/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
netcore/System.Private.CoreLib/shared/System/Collections/HashHelpers.cs
netcore/System.Private.CoreLib/shared/System/Memory.cs
netcore/System.Private.CoreLib/shared/System/ReadOnlyMemory.cs
netcore/System.Private.CoreLib/shared/System/ReadOnlySpan.Fast.cs
netcore/System.Private.CoreLib/shared/System/Span.Fast.cs