国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 開發(fā)設(shè)計 > 正文

.NET 應(yīng)用程序的性能提升應(yīng)用技巧

2019-11-18 17:18:56
字體:
供稿:網(wǎng)友

最近花了很多時間研究.net性能提升問題,在ms的網(wǎng)站上也找到很多不錯的資料,下面這些內(nèi)容估計大家或多或少的用過一些,在這里貼出來,希望能對大家的工作有所幫助。

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

出處:有氣質(zhì)的熊(minbear) BLOG


發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 济阳县| 咸宁市| 集安市| 尉氏县| 珠海市| 休宁县| 彭泽县| 仙居县| 汶上县| 龙胜| 贵港市| 池州市| 石狮市| 庄浪县| 新田县| 辽阳市| 东安县| 平遥县| 赞皇县| 沁水县| 南漳县| 苏尼特左旗| 乌鲁木齐县| 田东县| 仁布县| 峨边| 扎囊县| 上栗县| 肃宁县| 龙胜| 房山区| 静安区| 游戏| 大埔区| 宝兴县| 宁陵县| 抚州市| 丹巴县| 清河县| 乐山市| 珲春市|