Contents tagged with performance

  • Slow Razor Views in MVC? Make Sure You're Not In Debug Mode

    A short and sweet tip for today - I was investigating a page which I thought had some performance issues. My initial assumption was the backend controller, but a combination of SQL Profiler and Glimpse (which is super great and easy to use) showed me that the real bottleneck was ViewResult.ExecuteResult(). While someone on the internet suggested it might be a bunch of Url.Actions() causing … more

  • SPGridView Gotcha #2: Performance Issues / DataBinding multiple times

    Going off my previous SPGridView post a few days ago, I ramped up the testing for the SPGridView to grab some data from a live service hosted online somewhere. However, the performance for the SPGridView was terrible - it took somewhere within the range of 5-6 seconds to switch between pages of 10 items. Busting out the ULS logging and debugging tools, it turns out the Select method on the … more

  • Adventures with OpenXML Spreadsheets and Performance

    Following on from my previous post about my foray into OpenXML, I ran my little console application to extract data from a SharePoint list with about 5000 items, and very quickly noticed the huge amount of CPU and memory consumed by it. Turns out that the reason behind this is the large number of Data Objects being created (and not being collected/disposed) in memory. So after a bit of research … more

  • 1