You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MemoryStream allocates arrays in LOH, and it is inefficient.
Along the lines what MSFT did with RecyclablememoryStream, we could use Pile as memory manager or use RecyclableMemoryStream by MSFT as a drop-in replacement.
This deals with perf critical code where MemoryStream gets allocated/released many times.
See:
itadapter
changed the title
Revise MemoryStream use something like RecyclableMemoryStream or base it on Pile
Revise MemoryStream use cases - consider something like RecyclableMemoryStream or base it on Pile
Jan 5, 2018
MemoryStream allocates arrays in LOH, and it is inefficient.
Along the lines what MSFT did with RecyclablememoryStream, we could use Pile as memory manager or use RecyclableMemoryStream by MSFT as a drop-in replacement.
This deals with perf critical code where MemoryStream gets allocated/released many times.
See:
https://github.com/Microsoft/Microsoft.IO.RecyclableMemoryStream
The design needs to be re-evaluated in the light of: Pile, and ArrayPool/ Memory no to create code duplication
The text was updated successfully, but these errors were encountered: