I'm currently investigating performance issues on our web app (MVC2, S#arp Architecture, fluent nHibernate), using the MVC-mini-profiler which is great. I am using an attribute on actions or controllers I want to investicate as discussed in this post Getting more "granularity" from the MVC Mini Profiler.
I'm finding that a lot of time is spent between the OnResultExecuting and onResultExecuted, I figured this must be rendering the view so if there was complex logic called from there that would be the problem, but I've put a number of profiler calls around parts of the views, including one around the whole of the master page, but there is still a lot of time (about 4-5 seconds in some cased) that is completely unaccounted for.
I don't really understand what is happening in the step after OnResultExecuting other than rendering the view, so don't even know where to look for the performance problem.
Any pointers would be appreciated.