When it comes to performance improvements I noticed two distinct factions: one that would tune every line of code and the other that would never do anything. Somewhere in the middle you will find performance tuning nirvana. Here you will tune only the most relevant areas of the code to maximize performance and minimize the time spent tuning.
It is often said that tuning 5% of your code will take care of 95% of your performance problems and my gut feeling tells me that it is probably true. Finding the relevant 5% is another story. You can certainly comb through tens of thousands of lines of code, pepper your functions with performance counters or simply use a profiler and let it tell you what you need to do. One of the best profilers I tried is ANTS Profiler.
Impressions
ANTS Profiler will make you feel like a performance optimization specialist. After a quick run through your application with the profiler running it will present a view of your source code with performance statistics for each line. The time to run is displayed for each relevant line and a bar with the relative performance is displayed next to the slowest lines. You can instantly identify the line that takes the longest and if it is a function you can drill down into it to see exactly what line of code is causing the grief.
You can profile Windows applications, ASP.NET applications, COM+ applications and .NET Windows services so you should be covered from every angle.
ANTS Profiler is very easy to use with intuitive UI and proper options presented along the way.
Price
From $295 for the Standard edition up and $495 for the Pro edition. For more pricing and licensing details see the developer’s website.
Conclusion
A good profiler is a must have for any .NET developer and this is one of the best, 5 stars!
Get ANTS Profiler from here: http://www.red-gate.com/products/ants_profiler/
