You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a gRPC service that streams data from clients in a request stream, where each message is a chunk of data up to 1 MB. Currently, the gRPC library allocates a new array for each chunk, creating a lot of GC pressure, especially because the arrays are all allocated on the LOH. It would be great if we could configure the gRPC endpoint in ASP.NET to allocate those arrays from ArrayPool<byte>.Shared, rather than allocating new arrays. My endpoint logic would then be responsible for returning those arrays to the array pool when processing is complete.
The text was updated successfully, but these errors were encountered:
I have a gRPC service that streams data from clients in a request stream, where each message is a chunk of data up to 1 MB. Currently, the gRPC library allocates a new array for each chunk, creating a lot of GC pressure, especially because the arrays are all allocated on the LOH. It would be great if we could configure the gRPC endpoint in ASP.NET to allocate those arrays from
ArrayPool<byte>.Shared
, rather than allocating new arrays. My endpoint logic would then be responsible for returning those arrays to the array pool when processing is complete.The text was updated successfully, but these errors were encountered: