Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Improve Dictionary<K,T> CQ for primitive BCL ValueTypes
Browse files Browse the repository at this point in the history
Incorporate @AndyAyersMS [Potential CQ improvements in Dictionary<K,T>](https://github.com/dotnet/coreclr/compare/master...AndyAyersMS:DictionaryHacks?expand=1)

Specialize Equals and KeyHashCode to check for each of the BCL ValueType primitives, cast via object to the type and use them directly.

Types are `byte`, `sbyte`, `ushort`, `short`, `uint`, `int`, `ulong`, `long`, `IntPtr`, `UIntPtr`, `Guid`

Split functions between default comparer and custom comparer
  • Loading branch information
benaadams committed Sep 19, 2017
1 parent 4aca96e commit 31ba5dd
Showing 1 changed file with 527 additions and 375 deletions.
Loading

0 comments on commit 31ba5dd

Please sign in to comment.