博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Some steps to follow

Posted on 2009-11-24 21:56  Learn more  阅读(165)  评论(0编辑  收藏  举报

• Do not have empty destructors in your classes.
• In case you need to clean up use finalize dispose pattern with ‘SupressFinalize’ method called.
• If there is a dispose method exposed by a class , ensure to call the same from your client code.
• Application should have more objects allocated in Gen 0 than Gen 1 and Gen 2. More objects in Gen 1 and 2 is sign of bad GC algorithm execution

 

• If the files are already compressed do not enable compression on those files. We can safely disable compression on EXE , JPEG , PDF etc.
• For static pages compression level can be set to 10 as the compression happens only once.
• Compression level range can be from ‘4’ to ‘6’ for dynamic pages depending on the server environment and configuration.The best way to judge which compression level suits best is to perform TTFB, CPU utilization and compression test as explained in this article.

(http://www.codeproject.com/KB/aspnet/DONETBestPracticeNo2.aspx)