Exemplo n.º 1
0
 public void Init()
 {
     _pool             = new ReferenceObjectPool(maxCount: 20000, cleatTime: 2);
     _objs             = new List <testObj>();
     _pool.RecedeCache = true;
     _stop             = new Stopwatch();
     _startMemory      = GC.GetTotalMemory(true);
     _stop.Restart();
 }
 static BuffManagerExpansion()
 {
     _buffPool             = new ReferenceObjectPool();
     _buffPool.RecedeCache = true;
 }