-
### Background and motivation
[Microsoft.AspNetCore.WebUtilities.HttpRequestStreamReader](https://github.com/dotnet/aspnetcore/blob/4bc867dee200dffb10c9e3693b875311407bdfc6/src/Http/WebUtilities/sr…
-
Buffers allocated using buffer pools such as [ArrayPool](https://learn.microsoft.com/en-us/dotnet/api/system.buffers.arraypool-1?view=net-8.0) should be returned after usage.
### Noncompliant examp…
-
I've found that this strategy popups quite high in my memory profiling when generating zips.
Is it possible to replace with renting from pool and in Dispose method to return it back?
https://githu…
-
### Description
S2933 disagrees with [IDE0064](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0064).
### Repro steps
```csharp
struct Buffer : IDisposable
{
…
-
## Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=653237
Build error leg or test failing: System.Buffers.ArrayPool.Tests.Arr…
-
There are several ways to misuse array pool
1. forget to return - merely inefficient
2. return and continue to use
3. renter expects pre cleared array
4. returner does not request a clear and l…
-
[`ArrayPool.Create(int maxArrayLength, int maxArraysPerBucket)`](https://learn.microsoft.com/en-gb/dotnet/api/system.buffers.arraypool-1.create?view=net-8.0#system-buffers-arraypool-1-create(system-in…
-
The `JsonWriter` class contains a public property named `ArrayPool` of type `ICharArrayPool` that is intended to support use of character array pools.
However, that property is not defined in the…
-
### Library name
Azure.Core
### Please describe the feature.
Improve the performance of [Utf8JsonRequestContent](https://github.com/Azure/autorest.csharp/blob/feature/v3/src/assets/Generator.Shared…
-
## Motivation
As `StreamWriter` requires buffers that live longer than a function lifetime (i.e. buffer lifetime is longer than single entry function scope - class field vs local); there isn't a wa…