Additional measures

Here are a few more ways to reduce the load on your server.

Deployment

The way you deploy your site to production can impact its performance. This section looks at making sure your code runs in the release mode rather than debug mode, and at reducing the number of assemblies making up your site.

Building projects in release mode

If your site is a web-application project rather than a website, or if your website is a part of a solution containing other projects, be sure to build your releases in the release mode. This removes debugging overhead from your code, so it uses less CPU and memory.

For building projects in release mode, follow these steps:

  1. In Visual Studio, choose Build | Configuration Manager.
  2. In the Active Solution Configuration ...

Get ASP.NET Site Performance Secrets now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.