Reputation: 630
I have recently faced with a problem with C# AutoMapper performance (Specially with bigger collections), What is the best alternative to C# AutoMapper?
Upvotes: 3
Views: 5310
Reputation: 181
Actually, I also wanted to perform automatic one-to-one object mapping but had the same performance issue with AutoMapper when I wanted to deal with lots of complex objects during execution. That why I wrote a T4 generator to automatically generate static mapping at pre-build. It's not as flexible as AutoMapper (so far, it only works with strict one-to-one definitions) but the runtime performance is equivalent to manually written mappers.
It's called oMapGen and I just published it on CodePlex and as a NuGet package, so don't hesitate to try it and see if it fits in your projects. I may extend it in the future to make it more customizable.
Upvotes: 5
Reputation: 15148
Never had issues with AutoMapper, however I'm hearing pretty good stuff about ValueInjecter, it should be a solid alternative.
Also here is a good comparison between both, might be helpful.
Upvotes: 3