bump file stream buffer size

This commit is contained in:
Stanley Dimant
2024-11-04 21:29:37 +01:00
committed by Loporrit
parent 75eafa9792
commit da69f5fdf1

View File

@@ -153,7 +153,7 @@ public partial class FileDownloadManager : DisposableMediatorSubscriberBase
var fileStream = File.Create(tempPath);
await using (fileStream.ConfigureAwait(false))
{
var bufferSize = response.Content.Headers.ContentLength > 1024 * 1024 ? 4096 : 1024;
var bufferSize = response.Content.Headers.ContentLength > 1024 * 1024 ? 65536 : 8196;
var buffer = new byte[bufferSize];
var bytesRead = 0;