Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Roberts 74 posts 106 karma points c-trib
    Feb 18, 2014 @ 21:23
    Chris Roberts
    0

    RenderMacro Performance Problems - Please Help!

    Hi,

    We're having some performance problems on a site which is about to go into production. I've been using the MVC Mini Profiler and have come up with the following trace...

     duration (ms)with children (ms)from start (ms)
    http://xxx.xxx.com:8082/open... 93.1 1086.2 +2.1  
      [PublishedContentRequestEngine] FindPublished... 4.5 4.5 +11.4  
      Controller: RenderMvcController.Index 0.1 0.9 +76.2  
       Find: LandingPage 0.8 0.8 +76.3  
      Find: LandingPage 0.6 0.6 +77.2  
      Render : LandingPage 39.4 987.1 +77.9  
       [macro] Render Macro: Render Tiles, type: Par... 0.1 24.5 +86.0  
        [macro] Executing Partial View: 14.8 24.4 +86.0  
         Find: ~/Views/MacroPartials/RenderTiles.cshtm... -0.7 9.6 +86.9  
          Controller: RenderMvcController.Index 1.7 1.7 +94.8  
          Find: NewsTileWide 0.7 0.7 +96.6  
          Render : NewsTileWide 1.1 1.1 +97.3  
          Controller: RenderMvcController.Index 0.1 0.8 +101.1  
           Find: EventsUpcomingTile 0.7 0.7 +101.1  
          Find: EventsUpcomingTile 0.6 0.6 +101.9  
          Render : EventsUpcomingTile 1.0 1.0 +102.6  
          Controller: RenderMvcController.Index 0.1 0.9 +105.8  
           Find: LatestCampaignTile 0.8 0.8 +105.9  
          Find: LatestCampaignTile 0.6 0.6 +106.8  
          Render : LatestCampaignTile 2.9 2.9 +107.5  
       Find: NavigationSectionSubNav 0.8 0.8 +110.7  
       Render partial: NavigationSectionSubNav 17.4 17.4 +111.5  
       [macro] Render Macro: Navigation User, type: ... 0.2 491.2 +129.8  
        [macro] Executing Partial View: -467.1 491.0 +129.9  
         Find: ~/Views/MacroPartials/NavigationUser.cs... 958.1 958.1 +130.2  
       [macro] Render Macro: Navigation Main, type: ... 0.3 413.6 +621.1  
        [macro] Executing Partial View: 413.3 413.3 +621.2

    I've highlighted the line I'm concerned about in bold...

    It looks as though it's taking nearly a second to find the cshtml file!? I've tried commenting out the call to RenderMacro and it looks like the next macro to render then causes a delay.

    Is there some overhead involved in finding the MacroPartial cshtml files first time through each page? Strangely, turning on macro caching doesn't appear to remove this delay.

    We're running Umbraco v6.1.6.

    I'm getting pretty desperate on this one - any help would be really appreciated!

    Thanks,
    - Chris

  • Steven Harland 78 posts 518 karma points c-trib
    Jul 11, 2014 @ 17:51
    Steven Harland
    0

    Did you ever figure out why this is?

    I'm facing the same issue with an Umbraco 6.1.6 setup where it takes several seconds to find a view.

  • Chris Roberts 74 posts 106 karma points c-trib
    Aug 09, 2014 @ 00:10
    Chris Roberts
    0

    I'm pretty sure I did... but I can't remember how!

    I'm now facing the same problem on another project. So - if I work it out again, I'll let you know!

Please Sign in or register to post replies

Write your reply to:

Draft