Skip to content

Commit 1807fc6

Browse files
committed
perf: reduce initial transport response chunk rent
1 parent 2bea732 commit 1807fc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HotChocolate/AspNetCore/src/Transport.Http/GraphQLHttpResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private async ValueTask<OperationResult> ReadAsResultInternalAsync(string? charS
174174
var currentChunk = JsonMemory.Rent(JsonMemoryKind.Json);
175175
var currentChunkPosition = 0;
176176
var chunkIndex = 0;
177-
var chunks = ArrayPool<byte[]>.Shared.Rent(64);
177+
var chunks = ArrayPool<byte[]>.Shared.Rent(8);
178178

179179
try
180180
{

0 commit comments

Comments
 (0)