From b685f6b6b6dff2164fb9b4bfab1eef4b74938670 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Wed, 24 Feb 2016 16:02:17 +0100 Subject: [PATCH] Chunking: change the default chunk size to 10MB As discussed with Klaas, this seems to be a better compromise. 10MB * 3 prarralel jobs = 30MB in memory, and to retry in case of disconnection. Which is still reasonable. And might make the upload almost twice as fast on fast network where the amount of chunk is the bottleneck (because of more server processing) Relates to issue #4354 --- src/libsync/configfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/configfile.cpp b/src/libsync/configfile.cpp index 824c2bd7b..32d247570 100644 --- a/src/libsync/configfile.cpp +++ b/src/libsync/configfile.cpp @@ -125,7 +125,7 @@ int ConfigFile::timeout() const quint64 ConfigFile::chunkSize() const { QSettings settings(configFile(), QSettings::IniFormat); - return settings.value(QLatin1String(chunkSizeC), 5*1024*1024).toLongLong(); // default to 5 MiB + return settings.value(QLatin1String(chunkSizeC), 10*1000*1000).toLongLong(); // default to 10 MB } QString ConfigFile::transmissionChecksum() const -- 2.30.2