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 drop-down, select Release and click on Close. The next builds will now be in release mode.
3. If you have a website in your solution, you'll see that it remains in the debug mode. This is because its compile mode is set by the debug...