浅析Mono内存管理
Mono是什么
GC为什么耗时
何谓Mono内存泄漏
//获取Mono占用内存的api
[System.Runtime.InteropServices.DllImport("__Internal")]
public static extern long Mono_gc_get_used_size();
[System.Runtime.InteropServices.DllImport("__Internal")]
public static extern long Mono_gc_get_heap_size();减少GC的常见套路
foreach
字符串拼接
struct替代class
IDisposable与非托管资源
Last updated