microsoft/Microsoft.IO.RecyclableMemoryStream
A library to provide pooling for .NET MemoryStream objects to improve application performance. observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 99
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4238
- days_rel: n/a
- days_push: 7
- n_releases_24m: 0
Adoption not part of the score
2145 stars · 214 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A .NET library that pools MemoryStream buffers to reduce garbage collection pressure and Large Object Heap allocations in performance-critical applications. It is a near drop-in replacement for System.IO.MemoryStream with thread-safe pooling, metrics, and debugging support.
Use cases
- reduce gen 2 GC pauses in a high-throughput .NET service
- avoid large object heap allocations when serializing large payloads
- replace MemoryStream in a performance-critical application
- track down memory leaks from stream buffer misuse
- pool byte buffers for reading and writing large files
When to choose
- your .NET app allocates many MemoryStreams and suffers GC pressure
- you need a bounded, thread-safe buffer pool with metrics and logging
- you want a drop-in MemoryStream replacement supporting Span and Memory APIs
When to avoid
- your workload allocates streams rarely or in small sizes
- you need streams that are thread-safe themselves
- you are not on a supported .NET target
Facets
library · maturity stable
caching developer-tools benchmarking performance developer-tools dotnet cross-platform memory-pooling memorystream garbage-collection large-object-heap drop-in-replacement dotnet
1 source
- readme: https://github.com/microsoft/Microsoft.IO.RecyclableMemoryStream · fetched 2026-08-28 · a273fad453ce
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| microsoft/Microsoft.IO.RecyclableMemoryStream | main | 67 |
For agents
markdown · JSON · MCP: product_card(name="microsoft/Microsoft.IO.RecyclableMemoryStream")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem