网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > ASP.NET技巧
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
本月文章推荐
.应用lucene.net进行搜索测试.
.ASP.NET组件DataGrid的分页实用方.
.ASP.NET中上传下载文件.
.1.1和2.0下进行https请求的不同实.
.使Div内内容可编辑.
.如何最大限度提高.NET的性能 (续.
.如何在ASP.NET中获取随机生成的c.
.学习使用ASP.NET 2.0的本地化.
.如何实现用ODBC连接MySQL和ASP.N.
.根据身份证判断性别和生日.
.收藏一段小的.net下的验证码片段.
.简单绑定要注意的问题_AX.
.page事件顺序(.net2.0) .
..Net 下信号量(Semaphore)的一种.
.一段获得网卡地址的代码,可以用来.
.用JavaScript打造搜索工具栏.
.安全的设置DropDownList等列表类.
.解决ASPX网页另类load两次.
.ASP.Net2.0 WebPart趣味网页设计.
.Sys.ScriptLoader与JS加载进度条.

.NET 应用程序的性能提升应用技巧

发表日期:2006-3-30


最近花了很多时间研究.net性能提升问题,在ms的网站上也找到很多不错的资料,下面这些内容估计大家或多或少的用过一些,在这里贴出来,希望能对大家的工作有所帮助。

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

上一篇:在ASP.NET中防止注入攻击[翻译] 人气:6882
下一篇:Asp.Net中文本换行 人气:7332
浏览全部.NET的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐