.NET应用程序的性能提升应用技巧
来源:互联网 发布:英语教学软件 编辑:程序博客网 时间:2024/06/05 15:53
Performance Tips for All Applications:
Throw Fewer Exceptions
Make Chunky Calls
Design with ValueTypes
Use AddRange to Add Groups
Trim Your Working Set
Use For Loops for String Iteration—version 1
Use StringBuilder for Complex String Manipulation
Precompile Windows Forms Applications
Use Jagged Arrays—Version 1
Keep IO Buffer Size Between 4KB and 8KB
Be on the Lookout for Asynchronous IO Opportunities
Performance Tips for ASP.NET Applications
Cache Aggressively
Use Session State Only If You Need To
Use View State Only If You Need To
Avoid STA COM
Batch Compile
Remove Unnecessary Http Modules
Avoid the Autoeventwireup Feature
Encode Using ASCII When You Don't Need UTF
Use the Optimal Authentication Procedure
Appendix: Cost of Virtual Calls and Allocations
Call Type # Calls/sec
ValueType Non-Virtual Call 809971805.600
Class Non-Virtual Call 268478412.546
Class Virtual Call 109117738.369
ValueType Virtual (Obj Method) Call 3004286.205
ValueType Virtual (Overridden Obj Method) Call 2917140.844
Load Type by Newing (Non-Static) 1434.720
Load Type by Newing (Virtual Methods) 1369.863
More:http://msdn.microsoft.com/library/en-us/dnpag/html/scaleNET.asp?frame=true
出处:有气质的熊(minbear) BLOG
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>- .NET应用程序的性能提升应用技巧
- 11个显著提升 ASP.NET 应用程序性能的技巧——第1部分
- 25个提升iOS应用程序性能的诀窍和技巧
- .NET 应用程序的性能提示和技巧
- 提升 Node.js 应用性能的 5 个技巧
- 提升ASP.NET程序性能的20个技巧
- 提升 web 应用程序的性能
- .net web应用程序简单提升并发性能
- 提升Java性能的技巧
- Android 的性能 II-性能提升技巧
- Java应用性能的提升
- iOS应用性能调优的建议和技巧-初学者性能提升
- 提升Web应用程序性能的最佳实践
- 提升Web应用程序性能的最佳实践
- 提升Web应用程序性能的最佳实践
- 提升Web应用程序性能的最佳实践
- 提升Web应用程序性能的最佳实践
- 提升Web应用程序性能的最佳实践
- 在ASP.NET页面中推荐使用覆写(Override)而不是事件处理(EventHandler)
- 使用ASP.NETAtlas编写显示真实进度的ProgressBar(进度条)控件
- Asp.Net中文本换行
- asp.net2.0中tablecontrol搭配masterpage的小bug
- 在ASP.NET中防止注入攻击[翻译]
- .NET应用程序的性能提升应用技巧
- ASP.NET性能最佳实践
- Asp.net2.0关于Header/title/Metatages/Style操作的一点小技巧
- Asp.net自动返回上次请求页面
- 利用WebClient获取远程数据(仅做备份)
- 通过代码给IIS增加主机头
- 根据自定义字符串来缓存(部分)页面
- Repeater读取数据并分页
- ASP.Net使用缓存技术提高效率