You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AutomaticMapper<TSrc, TDest> class currently does no caching and re-grabs the PropertyInfos for the src and dest each time the mapping is run. This can be sped up by caching those during the first mapping so that subsequent runs don't need to do it.
I'm still trying to decide whether the PropertyInfos should be cached per instance or statically. I'm leaning towards doing it per instance because I think that fits the philosophy of the project better by leaving that cache lifespan decision up to the IoC container. That would allow the cache to actually be garbage collected if needed.
The text was updated successfully, but these errors were encountered:
The
AutomaticMapper<TSrc, TDest>
class currently does no caching and re-grabs the PropertyInfos for the src and dest each time the mapping is run. This can be sped up by caching those during the first mapping so that subsequent runs don't need to do it.I'm still trying to decide whether the PropertyInfos should be cached per instance or statically. I'm leaning towards doing it per instance because I think that fits the philosophy of the project better by leaving that cache lifespan decision up to the IoC container. That would allow the cache to actually be garbage collected if needed.
The text was updated successfully, but these errors were encountered: