作为替代,寄宿于.NET中的每个物理进程,.NET在运行时会预先分配一个特殊的堆,称作“the managed heap(托管堆)”。 这个堆可以当做传统的操作系统中的堆来使用:为对象和数据存储来分配内存。
基于1个网页-相关网页
For analyzing the managed heap, however, it is very impressive.
但是,对于分析托管堆,它给人的印象非常深刻。
Note that the managed heap is very efficient at allocating new objects, and the garbage collector is very efficient at collecting lots of small and short-lived objects.
请注意,托管堆在分配新对象方面非常有效,而垃圾回收器在收集大量生存期较短的小型对象方面非常有效。
This can get rid of the sawtooth pattern often seen for the managed heap size in.net-based applications, and reduces the time an application spends performing garbage collection.
这可以消除基于. NET的应用程序中托管堆大小常见的锯齿模式,并且减少了应用程序为执行垃圾回收而花费的时间。
应用推荐