Optimizing ASP.NET MVC view lookup performance

Earlier today Sam Saffron from the StackExchange team blogged about the performance of view lookups in MVC. Specifically, he compared referencing a view by name (i.e. calling something like @Html.Partial(“_ProductInfo”)) and by path (@Html.Partial(“~/Views/Shared/_ProductInfo.cshtml”)). His results indicate that in scenarios where a page is composed from many views and partial views (for example, when you…

6