Skip to content
Commit 10cf5aca authored by Méven Car's avatar Méven Car
Browse files

File ioslave : use Better setting for sendfile syscall

Summary:
Changes :
 * use sendfile when copying file bigger than 2 GB
 * copy 512 kB instead of previously 32 kB for each sendfile or read/write copying iteration

This effectively increase the copying speed, since the filesystem is asked to copy more at once, it lets it reach higher speed before getting the next data to copy.

CCBUG: 342056
CCBUG: 402276

Test Plan: Copying large files or folders with medium sized files (for instance photos) is noticebly faster.

Reviewers: #frameworks, dfaure

Reviewed By: dfaure

Subscribers: bruns, broulik, kde-frameworks-devel

Tags: #frameworks

Maniphest Tasks: T11627

Differential Revision: https://phabricator.kde.org/D28555
parent 60d7cfec
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment