Skip to content

AscarGb/Pooling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ObjectPool

Example

List<long> Creator() => new List<long>(1024 * 1024);

void Clearer(List<long> l) => l.ForEach(i => i = 0);

var bigListPool = new Pool<List<long>>(Creator, Clearer, 10);

using (var pooledList = bigListPool.Rent())
{
  var list = pooledList.item;
  //work with object
  
}//return to pool

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages