...
首页> 外文期刊>MSDN Magazine >Rediscover the Lost Art of Memory Optimization in Your Managed Code
【24h】

Rediscover the Lost Art of Memory Optimization in Your Managed Code

机译:在托管代码中重新发现丢失的内存优化技巧

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

Memory is the one resource all programs require, yet wise memory usage is becoming a lost art. Managed applications written for the Microsoft~(~R) .NET Framework rely on the garbage collector to allocate and clean up memory. For many applications, the three, to five percent of CPU time spent performing garbage collection (GC) is a fair trade-off for not having to worry about memory management. But for applications in which CPU time and memory are precious resources, minimizing the time spent garbage collecting can greatly improve application performance and robustness. If an application can more effectively use available memory, then it stands to reason that the garbage collector would run less often and for shorter periods of time. So rather than looking at what the garbage collector is or is not doing in your applications, take a look at memory usage directly.
机译:内存是所有程序都需要的一种资源,但是明智的内存使用已成为一门失传的艺术。为Microsoft〜(〜R).NET Framework编写的托管应用程序依赖于垃圾回收器来分配和清理内存。对于许多应用程序而言,执行垃圾回收(GC)所花费的CPU时间的百分之三到百分之五是一个公平的权衡,因为它不必担心内存管理。但是对于CPU时间和内存是宝贵资源的应用程序,最大程度地减少垃圾收集所花费的时间可以极大地提高应用程序的性能和健壮性。如果应用程序可以更有效地使用可用内存,则可以认为垃圾收集器将运行频率降低,并且运行时间更短。因此,与其查看垃圾回收器在您的应用程序中正在做什么或不在做什么,不如直接查看内存使用情况。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号