microsoft/Microsoft.IO.RecyclableMemoryStream

RMS v3.0 Planning

benmwatson opened this issue · 3 comments

This Issue will be for coordinating RMS v3.0. A major version change is an opportunity for necessary breaking changes, and a few have already been proposed.

If you would like to make a proposal, please file a new issue and I'll link it here.

There is no target date for release yet.

Proposed Changes so far:

Description Issue/PR # Notes
Remove obsolete overloads #256 Completed
Remove redundant overloads (prefer long over int) #256 Completed
Consider creating a MemoryStreamManagerOptions struct #256
Annotate library with nullable reference types #254 Completed
GetStream should return RecyclableMemoryStream instead of MemoryStream #165 Completed
Code Cleanup, spelling, newest language constructs #317 In PR

RMS.Dispose can replace this line (var lifetime = TimeSpan.FromTicks((long)((Stopwatch.GetTimestamp() - this.creationTimestamp) * (TimeSpan.TicksPerSecond / Stopwatch.Frequency))); with Stopwatch.GetElapsedTime under .NET 7.

FYI: A 2.x maintenance branch has been created, and I'm now accepting merges into master for 3.0.

3.0 is released. Closing issue!