dotnet / dotNext

Next generation API for .NET
https://dotnet.github.io/dotNext/
MIT License
1.62k stars 121 forks source link

Question: Where is the difference between: "Microsoft.Toolkit.HighPerformance.Buffers.SpanOwner<T>" and "DotNext.MemoryRental<T>"? #158

Closed CodingMadness closed 1 year ago

CodingMadness commented 1 year ago

Title.

src for "SpanOwner": https://learn.microsoft.com/en-us/dotnet/communitytoolkit/high-performance/spanowner

I cant quite grasp in what scenario yours may be better or equal to that type? I liked from your type that it may rent from whatever pool depending on the size needed, although I dont know if the reasoning-algorithm for that beats the purpose of "SpanOwner" from "Microsoft.Toolkit.HighPerformance" Nuget-package.

Any advise to this is very very appreciated cause I am in process to determine the proper buffering-strategy and would be cool to get the best one selected ^^

Btw very strong and dedicated work you have put in here, you earned my highest respect!