title: MVC website on Azure super slow on first load of each page
body: <p>I'm having a major issue with performance on an MVC site we are developing. When the site is hosted in Azure, the rendering phase of views takes a huge amount of time the first time a page is loaded, we're talking 15-60s per page. Subsequent loads of the same page thereafter are nice and fast, as one would expect. This is a trace from Glimpse for a hit on a page for the first time:</p>
  
  <p><a href="https://i.stack.imgur.com/kgkmr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kgkmr.png" alt="enter image description here"></a></p>
  
  <p>As you can see from the graph, the Razor rendering seems to be the main offender. I've read lots of things about pre-compilation of Razor views and I've tried implementing this but it made no difference for us at all. I'm also engaging with the Azure Web App devs who pointed fingers at Glimpse being an issue, but I've tried the app without Glimpse installed and it's still as slow as usual.</p>
  
  <p>I'm getting pretty stuck here...any ideas?</p>