I\'ve created a brand new MVC4 web application in Visual Studio, and done nothing more with it than add a Home controller and a \"Hello world\" index view for it. I then instal
Views are compiled before use - so on the first occasion they are slow.
Subsequently they are recompiled if the .cshtml
file changes - which means the directories that views are stored in are being monitored. So hard disk speed will be a factor for MVC views.
Even if they do nothing, each rendering engine checks the hard disk for .cshtml
or .aspx
files. Since removing a rendering engine made it run twice as fast, I suspect disk speed is the problem: