In one app, I have 360 mapped types. NH configuration was created as show under:
var map = new ModelMapper();
map.AddMappings(types);
var hbm = map.CompileMappingForAllExplicitlyAddedEntities();
hbm.autoimport = false;
configuration.AddMapping(hbm);
The time to execute the map.AddMappings (types) statement; is approximately 1268 ms and is related to running Activator.CreateInstance 360 times. Maybe by converting Activator.CreateInstance to compiled lambda we can get better performance?
