Skip to content

uu-cp is faster than cp #1975

@desbma

Description

@desbma

Not really an issue, but I thought you should know that on Linux uu-cp is measurably faster than Coreutils' cp.

The reason is that std::fs::copy internally makes use of sendfile or copy_file_range syscalls when it can, while the GNU cp maintainer has not yet added support, despite it being proposed several times (1 2).

On a tmpfs it can be around 5-10% faster for big files. On NFS it can probably be orders of magnitude faster because the copy can be done server side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions