O'Reilly logo

ASP.NET Site Performance Secrets by Matt Perdeck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. CPU

Unlike bottlenecks such as memory shortage that can be relatively cheaply addressed by adding hardware to the web server, upgrading or adding CPUs is relatively expensive. That makes it attractive to first try to reduce CPU usage when confronted by a CPU-related bottleneck.

In this chapter, we'll discuss the following:

  • Techniques and tools to identify code that require a lot of CPU usage
  • Specific ways to reduce CPU usage such as more efficient data access, better use of exceptions, and more efficient data binding

Let's start off with identifying where your code incurs the greatest CPU usage.

Identifying bottlenecks

There are a number of techniques to identify pieces of code with high levels of CPU usage:

  • Focus on pieces of code that are ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required