-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 2.13.2, 2.17.1
-
Component/s: BSON, Performance
-
None
-
Fully Compatible
The current GetHashCode() implementations for most BSON data types allocate substantial amounts of memory which can be eliminated easily. Here's the current state in our .NET 4.7.2 process using the .NET Standard 2.0 version of the C# driver:
This is a boxing issue that be safely eliminated - I'll create a PR in a few minutes for the required change. Here's how things look after the change:
- is related to
-
CSHARP-4300 Reduce memory traffic associated with Hasher.cs
- Backlog