From 59e37182be060c008f5801cfc1eef7a5ee32224c Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Wed, 10 Jun 2020 14:52:04 +0200 Subject: [PATCH] Use between 2 and 256MiB for buffering depending on the number of drives Changelog-entry: Use between 2 and 256MiB for buffering depending on the number of drives Change-type: patch --- lib/gui/modules/child-writer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gui/modules/child-writer.ts b/lib/gui/modules/child-writer.ts index 108932e8..4cd5e2f9 100644 --- a/lib/gui/modules/child-writer.ts +++ b/lib/gui/modules/child-writer.ts @@ -119,7 +119,7 @@ async function writeAndValidate({ onProgress, verify, trim: autoBlockmapping, - numBuffers: 32, + numBuffers: Math.min(2 + (destinations.length - 1) * 32, 256), decompressFirst, }); const result: WriteResult = {