AutoMapper/AutoMapper — pull request #152 by cjberg (2011-11-28 00:31:50+00:00)
Title: FormatterExpression Optimization

I noticed my web application spent four seconds creating mappings at start-up. Most of the time was used by Regex.Replace calls in FormatterExpression. I looked at the source and realized that the use of Regex.Replace was quite unnecessary and expensive, considering how simple the transformations were. By replacing all regexes with simpler string functions, the start-up time was cut to a quarter, down from four to about one second.

I hope you want to accept this pull request, since it does make a significant difference, without making the code more complex. All tests pass, of course.