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

首頁 > 編程 > .NET > 正文

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

2024-07-10 13:11:19
字體:
來源:轉載
供稿:網友
  • 網站運營seo文章大全
  • 提供全面的站長運營經驗及seo技術!
  • 最近花了很多時間研究.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

    發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 阿鲁科尔沁旗| 固原市| 合川市| 温州市| 南乐县| 宣恩县| 高密市| 乌鲁木齐县| 阿拉善右旗| 天水市| 蒙自县| 宁晋县| 织金县| 宜阳县| 右玉县| 夹江县| 通州区| 广昌县| 平塘县| 开原市| 蓬莱市| 监利县| 金沙县| 安龙县| 南康市| 湖口县| 武胜县| 黎城县| 巴马| 延津县| 清徐县| 横山县| 洪江市| 安陆市| 合水县| 洞头县| 土默特右旗| 临武县| 永寿县| 新绛县| 巴青县|