>>Helpful Points on .NET Performance

  1. Pre-size ArrayLists/Hashtables etc, the performance/memory impact of not doing this is massive if you are working with lists/tables/queues that have 1000's of items
  2. Build instrumentation into the codebase from the outset - you'll need it later for performance critical applications
  3. Analysis and understand the problem before you refactor/re-code
  4. Don't log too little or too much.  Logging takes time. The TextWriterTraceListener classes are not thread safe. Adding a queue in front of the TextWriterTraceListener moves you into the area of point 1 above.
  5. .NET Remoting calls are expensive - the call and the serialization.  Chunky not chatty.
  6. Use the PerfMon counters

文章来源:http://weblogs.asp.net/mdavey/archive/2004/02/25/79788.aspx
posted @ 2004-02-25 22:44  dudu  阅读(708)  评论(0编辑  收藏  举报