- 1、本文档共52页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Developing High Performance Applications with the NET 随着网络的高性能应用.ppt
Developing High Performance Applications With the .NET Compact Framework (400) Patrick Derks (patderks@) Mobile Devices Microsoft Corporation Agenda Overview JIT Compiler Garbage Collector (GC) Sources of Garbage Finalize Dispose Reflection XML Data Local Remote Measuring PerformanceOverview Micro-benchmarks versus Scenarios Benchmarking tips Use Environment.TickCount to measure Measure times greater than 1 second Start from known state Ensure nothing else is running Measure multiple times, take average Run each test in own AppDomain / Process Log results at the end Understand JIT-time versus runtime cost .NET Compact Framework .NET Compact Framework Performance v1-v2 Measuring PerformancePerformance counters My App.stat (formerly mscoree.stat) /library/en-us/dnnetcomp/html/netcfperf.asp Registry HKLM\SOFTWARE\Microsoft\.NETCompactFramework\PerfMonitorCounters (DWORD) = 1 What does .stat tell you? Working set and performance statistics More counters added in v2 Generics usage COM interop usage Number of boxed valuetypes Threading and timers GUI objects Network activity (socket bytes send/received) .stat .NET Compact Framework .NET Compact FrameworkHow we are different? Portable JIT Compiler Fast code generation, less optimized May pitch JIT-compiled code under memory pressure No NGen, install time or persisted code Interpreted virtual calls (no v-tables) Simple mark and sweep GC, non generational Common Language RuntimeExecution Engine Call path Managed calls are more expensive than native Instance call: ~2-3X the cost of a native function call Virtual call: ~1.4X the cost of a managed instance call Platform invoke: ~5X the cost of managed instance call (*Marshal int parameter) Properties are calls JIT compilers All platforms has the same optimizing JIT compiler architecture in v2 Optimizations Method inlining for simple methods Variable enregistration String interning Common Language Runtime Call path (sample) public class Shape { protected int m
您可能关注的文档
- 第2章时间价值与风险分析09会计【企业风险管理经典】.ppt
- 第五讲 中央行政管理体制【行政管理教案】.ppt
- 9_____小草和大树.ppt
- 13 Cellular adaptations13细胞的适应性.ppt
- 论文资料—力的合成8046650015.ppt
- HPS效率化维修——故障分析.ppt
- 英语泛读教程3:Unit 15概要1.ppt
- SP07_USA AI 31 - Seminar - Gold Data Analysis Tutorial - ICAOsp07_usa AI 31 -研讨会-金数据分析教程-国际民航组织.ppt
- 2012年《随堂优化训练》历史必修三 岳麓理科 第六单元 第26课 改变世界的高新科技 :精品课件.ppt
- 高一化学(气体摩尔体积(第一课时)5328330.ppt
- 2012届高考复习语文课件(人教版山西用)第4部分第3章第1节 用词贴切.ppt
- 2012化学高考总复习《创新教程》:第三章 第6讲 精品课件.ppt
- 青岛版数学一下《绿色回收》——两位数减一位数的退位减法.ppt
- 计算机全国计算机等级考试三级网络技术 考情分析.ppt
- EAST系统检查案例与实务.ppt
- 七年级思想品德《人际交往要礼貌》.ppt
- Consumer Behavior - University of Rio Grande & Rio Grande 消费者的行为-里奥格兰德大学里奥格兰德&;.ppt
- 2012届高考英语二轮复习精品课件(广东专用)第6模块 读写任务 专题1 记叙文型读写任务.ppt
- NSF – Animal Welfare Standard美国国家科学基金会–动物福利标准.ppt
- 2011半年度营运总结.ppt
文档评论(0)