Performance Tips and Tricks in. NET ApplicationsA. NET Developer Platform White Paper
Emmanuel Schanzer
Microsoft Corporation
August 2001
Summary: This article is for developers who want to tweak their applications for optimal performance in the managed world. sample code, explanations and design guidelines are addressed for Database, Windows Forms and ASP applications, as well as language-specific tips for Microsoft Visual Basic and Managed C ++. (25 printed pages) Contents
Overview
Performance Tips for All Applications
Tips for Database Access
Performance Tips for ASP. NET Applications
Tips for Porting and Developing in Visual Basic
Tips for Porting and Developing in Managed C ++
Additional Resources
Appendix: Cost of Virtual calland AllocationsOverview
This white paper is designed as a reference for developers writing applications. NET and looking for various ways to improve performance. if you are a developer who is new. NET, you shoshould be familiar with both the platform and your language of choice. this paper strictly builds on that knowledge, and assumes that the programmer already knows enough to get the program running. if you are porting an existing application. NET, it's worth reading this document before you begin the port. some of the tips here are helpful in the design phase, and provide information you shoshould be aware of before you begin the port.
This paper is divided into segments, with tips organized by project and developer type. the first set of tips is a must-read for writing in any language, and contains advice that will help you with any target language on the Common Language Runtime (CLR ). A related section follows with ASP-specific tips. the second set of tips is organized by language, dealing with specific tips about using Managed C ++ and Microsoft®Visual Basic®.