[CSHARP-451] Improve performance of BsonClassMap based serialization by caching serializers and discriminator conventions 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 caching information about serializers and discriminator conventions in BsonClassMap and BsonMemberMap.

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 ]

Merged new pull request with some changes.

Note that registering a serializer for a type that implements IBsonSerializable is not allowed for performance reasons. RegisterSerializer now enforces that.

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