PacktLib: ASP.NET Site Performance Secrets

ASP.NET Site Performance Secrets

Credits

About the Author

About the Reviewers

Preface

High Level Diagnosis

Assuring good performance

High-level diagnosis with Waterfall charts

Creating a Waterfall chart using Firebug

Categorizing bottlenecks using Waterfall charts

Waterfall generators for other browsers

More Waterfall chart generators

Find out more

Summary

Reducing Time to First Byte

Pinpointing bottlenecks

Additional measures

Find out more

Summary

Memory

Managed resources

CPU

Identifying bottlenecks

Tools

Data access

Exceptions

DataBinder.Eval

Garbage collector

Threading

StringBuilder

Regex instantiation

UtcNow

Foreach

Virtual properties

Avoid unnecessary processing

Trimming HTTP pipeline

Find out more

Summary

Caching

Browser caching

Proxy caching

Output caching

Kernel caching and IIS 7 output caching

Data caching

Find out more

Summary

Thread Usage

Asynchronous web service access

Asynchronous data access layer

Asynchronous generic handlers

Asynchronous file writes

Asynchronous web requests

Configuration changes

Setting timeouts aggressively

Find out more

Summary

Reducing Long Wait Times

Measuring wait times

Waiting concurrently

Retrieving multiple result sets from the database

Reducing overhead by using off-box session modes

Thread locking

Optimizing disk writes

Find out more

Summary

Speeding up Database Access

Pinpointing bottlenecks

Fixing bottlenecks

Find out more

Summary

Reducing Time to Last Byte

Pinpointing bottlenecks

Fixing bottlenecks

Additional measures

Find out more

Summary

Compression

Agreeing on compression

Configuring compression in IIS 7

Configuring compression in IIS 6

Updating the metabase

Configuring compression in IIS 5

Using compression in your development environment

Measuring the difference compression makes

Improving the compressibility of your pages

Is compression the magic bullet?

Find out more

Summary

Optimizing Forms

Client-side validation

Submitting forms asynchronously

AJAX-type grids

Find out more

Summary

Reducing Image Load Times

Caching

Serving images from cookieless subdomains

Parallel loading

Image control adapter

Image size

Combining images

Ways to avoid images

Shortcut icon

Content Delivery Network

Find out more

Summary

Improving JavaScript Loading

Problem: JavaScript loading blocks page rendering

Approach 1: Start loading after other components

Approach 2: Loading JavaScript more quickly

Approach 3: Loading JavaScript on demand

Approach 4: Loading Javascript without blocking

Improving ad loading

Improving CSS Loading

Find out more

Summary

Load Testing

Using a load test environment

Building a load test environment

Hosting the website under load

Installing a database

Setting up a load generator

Find out more

Summary