goal is to have better performance and uniform behavior between all files clients
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
qint64 ConfigFile::chunkSize() const
{
QSettings settings(configFile(), QSettings::IniFormat);
- return settings.value(QLatin1String(chunkSizeC), 10LL * 1000LL * 1000LL).toLongLong(); // default to 10 MB
+ return settings.value(QLatin1String(chunkSizeC), 100LL * 1024LL * 1024LL).toLongLong(); // 100MiB
}
qint64 ConfigFile::maxChunkSize() const
* starting value and is then gradually adjusted within the
* minChunkSize / maxChunkSize bounds.
*/
- qint64 _initialChunkSize = 10 * 1000 * 1000; // 10MB
+ qint64 _initialChunkSize = 100LL * 1024LL * 1024LL; // 100MiB
/** The target duration of chunk uploads for dynamic chunk sizing.
*
{"chunking", "1.0"},
{"httpErrorCodesThatResetFailingChunkedUploads", QVariantList{500} } } } });
- const int size = 100 * 1000 * 1000; // 100 MB
+ const auto size = 200LL * 1024LL * 1024LL; // 200 MiB
fakeFolder.localModifier().insert("A/a0", size);
QDateTime modTime = QDateTime::currentDateTime();
fakeFolder.localModifier().setModTime("A/a0", modTime);