maartenba/MvcSiteMapProvider — Issue #20: HtmlHelper Menu performance has drastically degraded since 3.1.0
Author: mrfoster
Created: 2012-02-02 22:37:34+00:00
State: open

The following method now takes about 6 times longer than it did in version 3.1.0

public static MvcHtmlString Menu(this MvcSiteMapHtmlHelper helper, string templateName, SiteMapNode startingNode, bool startingNodeInChildLevel, bool showStartingNode, int maxDepth, bool drillDownToCurrent)
{
var profiler = MiniProfiler.Current;
using (profiler.Step("MvcSitemap Menu"))
{
var model = BuildModel(helper, startingNode, startingNodeInChildLevel, showStartingNode, maxDepth, drillDownToCurrent);
return helper
.CreateHtmlHelperForModel(model)
.DisplayFor(m => model, templateName);
}
}