Do you have some solution, how to make object pool (memory pool) with objects than can contain different data with different size ? So if I request for object in memory pool with some size, it returns to me some allocated memory chunk with the closest size to my request. It should be written in C#. Thank you, because I really dont exactly know, what is the best collection for this and best algorithm. In C++ there are some solutions but there is no memory pool for C#.
Share
.Net Framework already has such an implementation (used by Windows Communication Foundation). See BufferManager