[CSHARP-2687] Too many not needed dictionary resize operations during RebuildIndexes in BsonDocument Created: 12/Aug/19  Updated: 28/Oct/23  Resolved: 29/Dec/20

Status: Closed
Project: C# Driver
Component/s: Performance, Serialization
Affects Version/s: 2.8.1, 2.9.0
Fix Version/s: 2.12.0

Type: Improvement Priority: Major - P3
Reporter: Daniel Hegener Assignee: Boris Dogadov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2019-08-13-00-31-08-690.png    

 Description   

Profiler says:

These auto-growth events can be easily avoided.



 Comments   
Comment by Githook User [ 29/Dec/20 ]

Author:

{'name': 'Daniel Hegener', 'email': 'Daniel.Hegener@fisglobal.com'}

Message: CSHARP-2687: Initialized dictionary to (mostly) correct target size in order to avoid auto-growth resize events of the underlying buffer.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/4e2a5df68146c5cdf5ee85758ddaac688b63e794

Generated at Wed Feb 07 21:43:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.