[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 |
| 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. |