Use 64 KiB buffer to copy file elements

This commit is contained in:
Martchus 2019-12-30 23:51:54 +01:00
parent b2c02e9acc
commit 40a96c1fd4
1 changed files with 1 additions and 1 deletions

View File

@ -931,7 +931,7 @@ void GenericFileElement<ImplementationType>::copyInternal(
}
auto &stream = container().stream();
stream.seekg(startOffset);
CppUtilities::CopyHelper<0x2000> copyHelper;
CppUtilities::CopyHelper<0x10000> copyHelper;
if (progress) {
copyHelper.callbackCopy(stream, targetStream, bytesToCopy, std::bind(&AbortableProgressFeedback::isAborted, std::ref(progress)),
std::bind(&AbortableProgressFeedback::updateStepPercentageFromFraction, std::ref(progress), std::placeholders::_1));