mongo-csharp-driver icon indicating copy to clipboard operation
mongo-csharp-driver copied to clipboard

Reduction of reflection calls --> minor deserialization performance gain

Open dnickless opened this issue 8 years ago • 0 comments

There was some reflection code in the Deserialize method which would get called repeatedly. But since the ClassMap is frozen (gets checked in the constructor) it should be sufficient to execute this code once upon construction of the BsonClassMapSerializer and then use the cached value.

dnickless avatar Nov 13 '17 15:11 dnickless