3 ms·
copy_file_range is much preferable to any of these because filesystems can "hook into" it and just share the underlying data, not copying at all.
by formerly_proven 4y ago
copy_file_range is much preferable to any of these because filesystems can "hook into" it and just share the underlying data, not copying at all.
- Denvercoder9 4y agoIn general, yes, but as the article notes, itt's not applicable to cat, as cat always outputs to stdout and not to a file.
- formerly_proven 4y agoYou can handle the cat foo bar baz > file case this way though, because stdout is a file then.
- ariadneconill 4y agothat is why the article mentions it as an honorable mention :P