-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance difference between v1.8.3 and v1.9.1 #149
Comments
They aren't strictly like-for-like, take for example ExpressMapper vs AutoMapper; the AutoMapper registration is I tried running the tests and do get very high times for
With custom member mappings removed:
It seems there is a performance issue but it looks isolated to custom member mappings. |
Hi! Thanks for the info! I added the collection member mappings to create empty collections instead of leaving the properties null. For example in the Deep mapper test, if I map I may well have not done it in the best way - is there a better way you can suggest? Cheers, Steve |
Hi,
I've got an ongoing mapper performance project, and it looks like something happened to ExpressMapper between versions 1.8.3 and 1.9.1 which made it much slower mapping non-simple mappings, possibly collections. The two tests in question are:
Complex mapping - deep cloning a Foo POCO with various kinds of value type properties, multiply-recursive Foo, List and Foo[] properties, and IEnumerable and int[] properties. For 1 million mappings, this has gone from 14.15s to 103.57s
Deep mapping - mapping a POCO with nested POCO and POCO collection properties onto a differently-typed POCO with corresponding properties. For 1 million mappings, this has gone from 6.25s to 94.19s
I'm intending to write a follow-up blog with updated performance results, so wanted to give you a heads up about this before I do.
All the best,
Steve Wilkes
The text was updated successfully, but these errors were encountered: