Geeks With Blogs
Chris Falter .NET Design and Best Practices Performance & Tuning
Health Monitoring in ASP.NET
While I was busy customizing Microsoft's Exception Management Application Block to classify and log all exceptions thrown in our web and Windows apps, and writing instrumentation code that published timing events via System.Diagnostics.Trace, Microsoft was busy writing ASP.NET Health Monitoring. Microsoft has more resources, so their product is a little more advanced and customizable. Here's what it provides: An event model: There are event classes for web request failures, for authentication failures, ......

Posted On Friday, June 6, 2008 1:03 PM

A Tool for Troubleshooting Web Apps and Web Services

Recently I discovered a tool that I had needed for a long time. Fiddler, a freeware product created and supported by Microsoftie Eric Lawson, can be used to debug HTTP traffic from any web browser (or client application). Here's how you can use it: 1. View/Analyze HTTP traffic.... 2. Generate test scripts....

Posted On Monday, January 28, 2008 7:20 AM

How To: Instrument Your Code to Time Its Use of Resources

If you're dealing with an issue that shows up only in production, sometimes you have to write special diagnostic code. This technique is known as instrumentation. If you don't have a license for a specialized profiler, or if you just want to focus on a small set of critical areas in your code, use the techniques in this post to find your bottleneck(s).

Posted On Friday, July 13, 2007 7:46 AM

Solved: The Mystery of DataView's Poor Performance with Large Recordsets
Well, maybe I solved it. At least I have a reasonable hypothesis. Reader “Ghassan” postulated in a comment to my earlier post that it's the extra burden of creating an array of DataRowView that puts the DataView approach at a disadvantage to DataTable.Select. However, a glance at DataView's default indexer in Lutz Roeder's wonderful Reflector utility shows that the array of DataRowView is not created while the constructor is executing. Instead, it is created when and if the DataView indexer ......

Posted On Tuesday, August 15, 2006 6:24 PM

Why You Might Prefer a DataView to an Array of DataRecord
Before we get too obsessed about the performance advantages of an array of DataRecord over a DataView, let's remember that a DataView behaves differently than an array of DataRecord. No matter how you modify the data in an array of DataRecord, the array bounds will always be the same. However, modifying a field in a DataRecord may cause it to disappear from a DataView, if the modification causes the record to be filtered by the DataView.Filter property. Or if you modify a DataRecord in a DataTable, ......

Posted On Monday, August 7, 2006 7:47 PM

Array of DataRecord vs. DataView: A Dramatic Difference in Performance
I spent much of last weekend running tests against a table with 122,000 records. The folks at Citibank and Geico would just yawn at that amount of data, but where I work that's fairly heavy lifting. As I was tuning and validating the tests, I used a bit-field flag ("TestCompleted") to track whether a record had already been tested. No need to do work twice, eh? Because this was a one-time set of tests, I used a TableAdapter (the simplest possible code) to grab all the records, then I needed to filter ......

Posted On Friday, August 4, 2006 6:34 PM

Copyright © Chris Falter | Powered by: GeeksWithBlogs.net