Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-4300

Reduce memory traffic associated with Hasher.cs

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      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 : struct

         to eliminate boxing for value types (BsonArray.GetHashCode, Hasher.Hash(BsonType))

            Assignee:
            Unassigned Unassigned
            Reporter:
            boris.dogadov@mongodb.com Boris Dogadov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: