February 12, 2011 by temebele
We were working on optimization effort for a web application that we built recently. After we finished fixing up Select N+1, Caching and other NHibernate related ORM usage issues another thing popped out. Our profiler was actually showing a hot spot on loading partial views, System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper, String, Object).
After doing some research I found this article by
Another solution will be to put the full path of the ascx file on RenderPartial instead of just the name.