D28555: File ioslave : use Better setting for sendfile syscall
Méven Car
noreply at phabricator.kde.org
Sat Apr 4 13:20:41 BST 2020
meven created this revision.
meven added a reviewer: Frameworks.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
meven requested review of this revision.
REVISION SUMMARY
Changes :
- use sendfile when copying file bigger than 2 GB
- copy 512 kB instead of previously 32 kB for each sendfile copying iteration
This effectively:
1/ increase the copying speed, since the filesystem is asked to copy more at once, it lets it reach higher speed,
2/ reduce the overhead of `processedSize` dbus progress notification in each iteration since it is called less often, adding some more speed.
CCBUG: 342056
CCBUG: 402276
TEST PLAN
Copying large files or folders with medium sized files (for instance photos) is noticebly faster.
REPOSITORY
R241 KIO
BRANCH
sendfile-opt
REVISION DETAIL
https://phabricator.kde.org/D28555
AFFECTED FILES
src/ioslaves/file/file_unix.cpp
To: meven, #frameworks
Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200404/b62ef328/attachment.html>
More information about the Kde-frameworks-devel
mailing list