PiranhaCMS / piranha.core

Piranha CMS is the friendly editor-focused CMS for .NET that can be used both as an integrated CMS or as a headless API.

Home Page:http://piranhacms.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change to a more efficient mapper?

steveski opened this issue · comments

Just wondering if you could replace Automapper with Mapperly due to its vastly better performance using source generators?

Mapping is only performed when models are transformed from the database entities, in other words when the requested model is not present in the cache. In this scenario, the model transformation using auto mapper will be the least thing affecting performance as the actual database queries will take more time, so I'm not sure I see how changing the mapper would have any effect in a production scenario.

Best regards