Skip to content

file_unix: Refactor copy()

Méven Car requested to merge (removed):refactor-file-unix-copy into master
  • Break the hot loop into two
  • Use file_copy_range in Linux (instead of sendfile)
  • Added a little comments and a warning

Performance should be improved for filesystem exploiting file_copy_range optimization opportunities. At this time NFS and cifs mounts should be concerned.

cc @dfaure @alex

Part of https://phabricator.kde.org/T12641

Edited by Méven Car

Merge request reports

Loading