ASP.NET site performance secrets : simple and proven techniques to quickly speed up your ASP.NET web site /

Saved in:
Bibliographic Details
Author / Creator:Perdeck, Matt.
Imprint:Birmingham, U.K. : Packt Pub., ©2010.
Description:1 online resource (xii, 435 pages) : color illustrations
Language:English
Subject:
Format: E-Resource Book
URL for this record:http://pi.lib.uchicago.edu/1001/cat/bib/11234575
Hidden Bibliographic Details
ISBN:9781849690690
1849690693
1849690685
9781849690683
1849513724
9781849513722
9781849690683
9781849513722
Digital file characteristics:data file
Notes:Includes bibliographical references and index.
Print version record.
Summary:Annotation 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.
Other form:Print version: Perdeck, Matt. ASP.NET site performance secrets. Birmingham, U.K. : Packt Pub., 2010 9781849690683
Table of Contents:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; Table of Contents; Preface; Chapter 1:High Level Diagnosis; Assuring good performance; Continuous monitoring; Setting performance goals; Iterative improvements; Monitoring services; High-level diagnosis with Waterfall charts; Creating a Waterfall chart using Firebug; Installing Firebug; Creating the Waterfall Chart; Interpreting the Waterfall chart; Request and response information; Timeline information; Page-level information; Saving information; Categorizing bottlenecks using Waterfall charts
  • Scenario 1: Main .aspx file takes long to arriveScenario 2: Main .aspx file takes long to load over the Internet; Scenario 3: Images take long to load; Scenario 4: JavaScript file blocks rendering; Waterfall generators for other browsers; Fiddler (browser-independent); Internet Explorer via WebPagetest; Google Chrome; Apple Safari; More Waterfall chart generators; Find out more; Summary; Chapter 2:Reducing Time to First Byte; Pinpointing bottlenecks; Memory; Windows Server 2003; Windows Vista, Windows Server 2008, or Windows 7; Simulating a memory shortage; Caching; CPU; Thread usage
  • Long wait timesAdditional measures; Deployment; Building projects in release mode; Publishing your website; Disabling debug mode; Reducing number of assemblies; Reducing round trips; Using Server.Transfer instead of Response.Redirect; Always specifying the default file in URLs; Permanent redirects; Minimize CNAME records; SSL; Unwanted requests; Search engine bots; Hotlinking; CAPTCHA; Scrapers; Usability testing; Find out more; Summary; Chapter 3:Memory; Managed resources; Life cycle; Generations; Large Object Heap; Counters; CLR profiler; Garbage collector versions; Acquire late
  • Release earlyUsing StringBuilder to concatenate strings; Using StringBuilder; When not to use StringBuilder; StringBuilder capacity; Using Compare for case-insensitive compares; Using Response.Write buffer; Pooling objects over 85KB; Unmanaged resources; IDisposable; Counters; Sessions; Reducing session state life time; Reducing space taken by session state; Using another session mode; Stop using session state; Find out more; Summary; Chapter 4:CPU; Identifying bottlenecks; Tools; Data access; Connection pooling; DataSet versus List; Returning multiple result sets
  • Sending multiple inserts in one goUse native data providers; Exceptions; Revealing the time taken by exceptions; Counters; DataBinder.Eval; Garbage collector; Threading; StringBuilder; Regex instantiation; UtcNow; Foreach; Virtual properties; Avoid unnecessary processing; Trimming HTTP pipeline; Find out more; Summary; Chapter 5:Caching; Browser caching; OutputCache directive; Enabling caching in code; Disabling caching in code; Proxy caching; Caching different versions of the same page; Cookies; Removing query string from URL; URLRewrite extension to IIS 7; RewritePath method in Global.asax