Optimizing the Site

When you need to make an Internet application more scalable, reliable, and faster, you can do many things to optimize the site. These optimizations fall into roughly two groups: .NET-intrinsic optimizations and optimizations that are outside the realm of the .NET Framework.

The available .NET-specific features include .NET finalization and garbage collection, managed code, speedier value types, and a built-in StringBuilder class. In addition, you can optimize code by simply using the /optimize command-line argument when compiling (this command is turned on by default).

.NET Finalization and Garbage Collection

One of the easiest ways to optimize a .NET Web-based application is to take advantage of the built-in garbage collection ...

Get Building e-Commerce Sites with the .NET Framework 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.