mongo-csharp-driver
mongo-csharp-driver copied to clipboard
Reduction of reflection calls --> minor deserialization performance gain
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.