Miniprofiler は、ページの最も遅い部分が「レンダリング」ステップであることを示しています (下にスクリーンショットを添付)。
そのレンダーステップで何が起こっていますか? .aspx を html に変換してクライアントに送信する段階ですか? Miniprofiler.Current.Step()
遅い理由を正確に確認するために追加できる場所はありますか?
アプリは、.aspx レンダリング エンジンを使用した .NET4.5 上の MVC4 です。
編集:
コントローラーのアクションは、次の行に沿った標準の MVC のものです。
public ActionResult Index()
{
ViewData["foo"] = GetFoo();
return View(model);
}
ASPX ビューは次のような基本的なものです。
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"
Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<p><% ViewData["foo"] %></p>
<% Html.RenderPartial("Something", Model) %>
</asp:Content>