Delay on Find: DisplayTemplate


#1

Crosspost from: http://stackoverflow.com/questions/11758338/find-displaytemplates-speed

Any ideas why MVC is taking a while when finding certain display templates? Switched between debug and production with no difference. Also it doesn’t matter if the page is cached or not, still comes back this slow. I had 4 areas setup, so I figured it was traversing all the directories looking for a match, so I removed 2 of the areas and have the same behavior.


#2

The answer I came do has to do with the MVC4 RC bundling. The once I put a profiling block around the bundles in the I could see that’s where the time was being spent. I removed the bundles and all is good.

See related issue below: