Skip to content

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

Answered by sakno
CodingMadness asked this question in Q&A
Discussion options

You must be logged in to vote

BufferWriterSlim is a growable dynamic buffer while MemoryRental not. You can add as many elements as you want to BufferWriterSlim. It transparently reallocates the internal buffer. MemoryRental can't grow. They have the same difference as List<T> and T[].

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
1 reply
@sakno
Comment options

sakno Apr 9, 2023
Maintainer

Comment options

You must be logged in to vote
10 replies
@CodingMadness
Comment options

@sakno
Comment options

@CodingMadness
Comment options

@sakno
Comment options

Answer selected by CodingMadness
@CodingMadness
Comment options

@sakno
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #158 on April 09, 2023 15:37.