Automapper running extremely slow on mapping 1400 records

前端 未结 4 1224
南旧
南旧 2021-02-19 18:34

I am using AUtomapper which I am very impressed with however, I have a complex object with many nested collections. I\'m using Telerik OpenAccess and it returns the 1400 records

4条回答
  •  无人共我
    2021-02-19 19:05

    For those coming to this later, AutoMapper 5.x release made significant performance improvements, where mapping speed is only slightly slower than hand mapping (1M items):

    • Native: 0.19s
    • AutoMapper: 0.49s
    • AutoMapper 4.2.1: 29s

提交回复
热议问题