runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[API Proposal]: Recyclable Memory Stream

Open tony-ssdut opened this issue 2 years ago • 4 comments

Background and motivation

Recyclable memory stream implemented in dotnet runtime. https://github.com/Microsoft/Microsoft.IO.RecyclableMemoryStream Could you help to consider if it is helpful to move this library into dotnet runtime.

API Proposal

https://github.com/Microsoft/Microsoft.IO.RecyclableMemoryStream

API Usage

Used for memory optimized stream using.

Alternative Designs

No response

Risks

No response

tony-ssdut avatar Apr 21 '24 04:04 tony-ssdut

Tagging subscribers to this area: @dotnet/area-system-io See info in area-owners.md if you want to be subscribed.

There's a whole bunch of stuff in that library that is almost certainly not appropriate for the BCL. So if you want to propose inclusion of this library in the BCL, you need to actually type up an API shape for the proposal.

alexrp avatar Apr 21 '24 05:04 alexrp

What's the benefits of moving this into dotnet/runtime? Does it need to continue being a OOB package or can it ship inbox? cc @benmwatson @paulomorgado

jozkee avatar Jul 03 '24 16:07 jozkee

For the BCL, I would do something on top of MemoryPool<byte> or ArrayPool<byte>.

I've been thinking of exploring this, but haven't had the time to do so.

paulomorgado avatar Jul 03 '24 20:07 paulomorgado