maartenba/MvcSiteMapProvider — Issue #3: Performance loading sitemap on first hit
Author: gsuttie
Created: 2011-12-15 13:52:51+00:00
State: open

I am using a dynamic node provider which contains 6000 nodes in total. The first time a razor view is requested which contains
@Html.MvcSiteMap().SiteMapPath(), the page can take up to 7500ms to load.

The time is all taken up within this call as when profiling my code within the dynamic node provider it takes 28ms.

If I take out all of the dynamic nodes in the mvc.sitemap the code returns very quick 280ms.

Is there any way to pre-load this - I am using IIS 7 and therefore cant use the app warm up module or the new app startup warming part if IIS 7.5.