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

后端 未结 7 2004
[愿得一人]
[愿得一人] 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 10:07

    Not sure if this is causing any issues in your case, but beware of serializing auto-implemented properties.

    Each time your code is compiled, the name of each (anonymous) backing field is picked at random by the compiler. So you may see some surprising exceptions if you serialize data with a progran that is compiled at one time and de-serialize it with a different program.

提交回复
热议问题