随笔分类 - 教你50招提升ASP.NET性能
50 Ways to Avoid, Find and Fix ASP.NET Performance Issues 翻译
摘要:(12)For a snappy user experience, always validate on the client招数12:为了生动的用户体验,总是在客户端验证To avoid unnecessary round trips to the server, validate form entries on the client using JavaScript before posting them. This provides quick feedback and makes your application feel more responsive. Always make su
阅读全文
摘要:(11)Make sure paging is conducted at the database layer招数11:确保分页是在数据层完成的When using grid UI controls (framework based, or 3rd party owned), you should carefully consider how paging is implemented. Many controls implement paging in a simplistic fashion, where the database is required to return all ava
阅读全文
摘要:(4)A selection of tips招数4:精选的技巧Make sure HTTP compression is turned on for any uncompressed content. HTML in particular compresses significantly, and in this era of mobile friendliness and slow 3G connections, that’s essential.确保为未压缩的内容打开HTTP压缩。在这个面向移动友好和3G连接缓慢的时代,HTML压缩尤其明显,这是至关重要的。(5)Always set th
阅读全文
摘要:(3)Use Microsoft’s PDBs to debug or profile external assemblies or libraries招数3:使用Microsoft的PDBs调试和分析外部的程序集和库To accurately debug or profile an external assembly or library (i.e. one you’re not directly compiling), you need the PDB files that accompany each of the DLLs.These files give your debugger
阅读全文
摘要:(2)Remove unused View Engines招数2:移除不用的视图引擎If you're an ASP.NET MVC developer, you might not know that ASP.NET still loads the View Engines for both Razor and Web Forms by default. This can cause performance issues because MVC will normally look for Web Forms views first, before switching over to
阅读全文
摘要:(1)Caching is a last resort招数1:缓存是最后的手段Projects that use multiple levels of cache often demonstrate a misunderstanding of why caching is required in the first place.项目中使用多重缓存经常会表现会产生误会,为什么缓存是第一步必须的。Caching is not synonymous with performance. Your code should already be efficient. Caching should only
阅读全文

浙公网安备 33010602011771号