Need to speed up automapper…It takes 32 seconds to do 113 objects

后端 未结 7 2147
[愿得一人]
[愿得一人] 2021-01-30 09:25

Hi I have some major problems with auto mapper and it being slow. I am not sure how to speed it up.

I am using nhibernate,fluent nhibernate and asp.net mvc 3.0



        
7条回答
  •  天命终不由人
    2021-01-30 09:45

    If your subcollections are large you might benefit from using "Any()" instead of the "Count > 1". The Any function will only have to iterate once while the Count might need to iterate the entmes collection (depending on the implementation).

提交回复
热议问题