microsoft / Microsoft.IO.RecyclableMemoryStream

A library to provide pooling for .NET MemoryStream objects to improve application performance.
MIT License
1.98k stars 205 forks source link

Add important note to avoid memory leak by wrong usage of the lib #338

Closed AndrePostiga closed 7 months ago

AndrePostiga commented 7 months ago

Use RecyclableMemoryStream was very important to avoid memory leaks on my implementations, but I note that the incorrect usage/instanciation can make an memory leaks in gen2 memory.

To avoid the incorrect usage I've added an enphasys on usage note to avoid wrong implementation.