Use 64 KiB buffer to copy file elements
This commit is contained in:
parent
b2c02e9acc
commit
40a96c1fd4
|
@ -931,7 +931,7 @@ void GenericFileElement<ImplementationType>::copyInternal(
|
||||||
}
|
}
|
||||||
auto &stream = container().stream();
|
auto &stream = container().stream();
|
||||||
stream.seekg(startOffset);
|
stream.seekg(startOffset);
|
||||||
CppUtilities::CopyHelper<0x2000> copyHelper;
|
CppUtilities::CopyHelper<0x10000> copyHelper;
|
||||||
if (progress) {
|
if (progress) {
|
||||||
copyHelper.callbackCopy(stream, targetStream, bytesToCopy, std::bind(&AbortableProgressFeedback::isAborted, std::ref(progress)),
|
copyHelper.callbackCopy(stream, targetStream, bytesToCopy, std::bind(&AbortableProgressFeedback::isAborted, std::ref(progress)),
|
||||||
std::bind(&AbortableProgressFeedback::updateStepPercentageFromFraction, std::ref(progress), std::placeholders::_1));
|
std::bind(&AbortableProgressFeedback::updateStepPercentageFromFraction, std::ref(progress), std::placeholders::_1));
|
||||||
|
|
Loading…
Reference in New Issue