AutoMapper Profile Resharper Analysis Performance Issues
Thought I'd pass this along after working the issue out on my own:
I experience a serious slowdown while working on a project today. I vaguely remembered having the same issue working on a project about a year ago, and both times I was editing a particularly complicated AutoMapper Profile. These profiles are bascially a series of Linq method chains along the lines of:
CreateMap<T,TU>()
.ForMember(destination => destination.Property1, option => option.MapFrom(source => source.SourceProperty1))
.ForMember(destination => destination.Property2,...)
.ForMember(...);
As you may imagine, a particularly complicated Profile may have dozens of Properties to map.
On a hunch, I excluded the folder which contained these profiles and continued my work, this time without the slowdown.
My assumption is that the performance issue is ReSharper attempting to analyze the method chain and blowing up. Anyone else have any thoughts on this?
Please sign in to leave a comment.
Feel free to follow/comment https://youtrack.jetbrains.com/issue/RSRP-464335 and https://youtrack.jetbrains.com/issue/RSRP-459764 requests about the same things.
Thanks!
Currently having the exact same issue
same exact problem as well, 3 years later. crashes vs constantly
Hello Mark Ballenger,
thank you for the feedback.
Could you please provide some sample solution demonstrating the problem? You can share it privately via "Submit a request" form.
Thank you.