Skip to content

Conversation

@dnickless
Copy link
Contributor

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 dnickless changed the title Cached the "_isValueType" information that used to be retrieved throu… Reduction of reflection calls --> minor deserialization performance gain Nov 13, 2017
@dnickless dnickless force-pushed the BsonClassMapSerializer_Reduce_Reflection branch from aee05d8 to 35545b2 Compare October 4, 2018 12:00
@dnickless dnickless force-pushed the BsonClassMapSerializer_Reduce_Reflection branch from 35545b2 to b5caef6 Compare December 8, 2020 17:49
@BorisDog
Copy link
Contributor

Thanks @dnickless for your contribution. This file has changed a few times since this PR, and this fix is not relevant anymore.

@BorisDog BorisDog closed this Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants