Details
-
Task
-
Resolution: Unresolved
-
Unknown
-
None
-
None
-
None
-
None
Description
Follow up for https://jira.mongodb.org/browse/CSHARP-4292
- Make Hasher a struct, to reduce memory traffic in associated GetHashCode.
- Add public
Hasher Hash<T>(T obj) where T : structto eliminate boxing for value types (BsonArray.GetHashCode, Hasher.Hash(BsonType))
Attachments
Issue Links
- related to
-
CSHARP-4292 Performance: Eliminate allocations in GetHashCode()for all BSON data types
-
- Closed
-