Free Sample
+ Collection

ASP.NET Site Performance Secrets

Matt Perdeck

Simple and proven techniques to quickly speed up your ASP.NET website
RRP $35.99
RRP $59.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849690683
Paperback456 pages

About This Book

  • Speed up your ASP.NET website by identifying performance bottlenecks that hold back your site's performance and fixing them
  • Tips and tricks for writing faster code and pinpointing those areas in the code that matter most, thus saving time and energy
  • Drastically reduce page load times
  • Configure and improve compression – the single most important way to improve your site's performance
  • Written in a simple problem-solving manner – with a practical hands-on approach and just the right amount of theory you need to make sense of it all


Who This Book Is For

This book is written for ASP.NET/SQL Server-based website developers who want to speed up their site using simple, proven tactics without going through a lot of unnecessary theoretical learning. If your website isn't performing well, this is the ideal book for you.

Table of Contents

Chapter 1: 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
Chapter 2: Reducing Time to First Byte
Pinpointing bottlenecks
Additional measures
Find out more
Chapter 3: Memory
Managed resources
Chapter 4: CPU
Identifying bottlenecks
Data access
Garbage collector
Regex instantiation
Virtual properties
Avoid unnecessary processing
Trimming HTTP pipeline
Find out more
Chapter 5: Caching
Browser caching
Proxy caching
Output caching
Kernel caching and IIS 7 output caching
Data caching
Find out more
Chapter 6: 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
Chapter 7: 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
Chapter 8: Speeding up Database Access
Pinpointing bottlenecks
Fixing bottlenecks
Find out more
Chapter 9: Reducing Time to Last Byte
Pinpointing bottlenecks
Fixing bottlenecks
Additional measures
Find out more
Chapter 10: 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
Chapter 11: Optimizing Forms
Client-side validation
Submitting forms asynchronously
AJAX-type grids
Find out more
Chapter 12: Reducing Image Load Times
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
Chapter 13: 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
Chapter 14: 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

What You Will Learn

  • Learn how to pinpoint and fix bottlenecks relating to all aspects of your site – server side, client side, code, images, and database.
  • Ensure shorter wait times for your site.
  • Eliminate the need to hire a DBA, by speeding up database access using insight into index structures and other advanced techniques.
  • Drastically speed up image loading, by exploiting browser behavior and by removing the hidden overhead in each image file.
  • Use ASP.NET's caching feature to dramatically improve performance by adding just a few lines of code.
  • Prevent a little known bottleneck overlooked by most developers – a shortage of worker threads in IIS – by using asynchronous methods.
  • Enable compression in IIS 6 and IIS 7 to cut file transfer times and bandwidth costs.
  • Reduce your Memory and CPU usage.
  • Optimize the deployment and usage of forms on your website.
  • Speed up JavaScript and CSS loading.
  • Diagnose problems as they occur, using waterfall charts.
  • Load-test your environment to measure the level of improvement in performance.
  • Find heaps of reference links and descriptions of free and low cost tools and services that make it easy to spot performance issues right away.


In Detail

Do you think that only experts with a deep understanding of the inner workings of ASP.NET, SQL Server, and IIS can improve a website's performance? Think again – because this book tosses that notion out of the window. It will help you resolve every web developer's nightmare – a slow website – with angry managers looking over your shoulder, raging calls from advertisers and clients – the lot. You don't have the time or energy to gain a thorough and complete understanding of ASP.NET performance optimization – You just need your site to run faster! This book will show you how.

This hands-on book shows how to dramatically improve the performance of your ASP.NET-based website straight away, without forcing you through a lot of theoretical learning. It teaches you practical, step-by-step techniques that you can use right away to make your site faster with just the right amount of theory you need to make sense of it all.

Start reading today and you could have a faster website tomorrow.

Unlike other performance-related books, here you'll first learn how to pinpoint the bottlenecks that hold back your site's performance, so you can initially focus your time and energy on those areas of your site where you can quickly make the biggest difference. It then shows you how to fix the bottlenecks you found with lots of working code samples and practical advice, and just the right amount of theoretical detail.

The first chapter details techniques for diagnosing performance issues using Waterfall charts. Subsequent chapters then each focus on one individual aspect of your website, providing you with numerous real-life scenarios and performance-enhancing techniques for each of them. In the last chapter, you learn how to effectively load-test your environment in order to measure the change in performance of your site without having to update your production environment – whether it is a new release or simply a small change in the database.


Read More