From: Olivier Goffart Date: Wed, 24 Feb 2016 15:02:17 +0000 (+0100) Subject: Chunking: change the default chunk size to 10MB X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1348 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b685f6b6b6dff2164fb9b4bfab1eef4b74938670;p=nextcloud-desktop.git 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 --- 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