Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why just pool MemoryStream #334

Closed
trivalik opened this issue Feb 16, 2024 · 2 comments
Closed

why just pool MemoryStream #334

trivalik opened this issue Feb 16, 2024 · 2 comments

Comments

@trivalik
Copy link

Wouldn't it make sense to have these kind of library also for other types like List<T>?

There is already not maintained repository https://github.com/jtmueller/Collections.Pooled, but not from Microsoft.

@benmwatson
Copy link
Member

This is a very specialized class for interacting with byte arrays and the special considerations they have related to streams. It is not meant to be a general-purpose pooling mechanism at all.

@trivalik
Copy link
Author

trivalik commented Mar 1, 2024

I know this library is just for memorystreams. I just wonder why this is not bigger over several types. Since the readme tells about a pooling mechanism "the underlying buffers are pooled". I just want awake that this could be possible (maybe in another microsoft project). Feel free to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants