国产探花免费观看_亚洲丰满少妇自慰呻吟_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

    發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 梁山县| 榆林市| 通渭县| 乡城县| 仪征市| 固始县| 吴桥县| 耒阳市| 安平县| 巴马| 道真| 汕头市| 衡山县| 阿拉善右旗| 东海县| 赣榆县| 察雅县| 瑞昌市| 徐州市| 平昌县| 响水县| 江陵县| 湟中县| 谷城县| 黔西| 荔浦县| 临猗县| 高青县| 神木县| 利川市| 隆昌县| 双江| 中山市| 兰溪市| 稻城县| 东丽区| 开化县| 海城市| 通道| 甘孜县| 江安县|