Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
formerly_proven
· 4y ago · 0 comments
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.
Comments
[–]
Denvercoder9
4y ago
In 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
OP
4y ago
You can handle the cat foo bar baz > file case this way though, because stdout
is
a file then.
[–]
ariadneconill
4y ago
that is why the article mentions it as an honorable mention :P