mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:37:23 +01:00
bump file stream buffer size
This commit is contained in:
parent
77e181eab0
commit
973b63cdf1
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue