[CSHARP-452] Improve performance of BsonClassMap based serialization by not using HashSet to detect missing elements Created: 24/Apr/12  Updated: 02/Apr/15  Resolved: 28/Apr/12

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.4.1
Fix Version/s: 1.5

Type: Improvement Priority: Minor - P4
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Improve performance of BsonClassMap based serialization by not using HashSet to detect missing elements. See the fasterserialization branch linked to below for a prototype of how this could work using a fixed size array instead of a HashSet.

See:

https://github.com/mongodb/mongo-csharp-driver/pull/97
https://github.com/rstam/mongo-csharp-driver/tree/fasterserialization



 Comments   
Comment by Robert Stam [ 28/Apr/12 ]

Added new FastMemberMapFinder helper class that doesn't use HashSet.

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