News for hackers. Stuff that matters.
Re:How efficient can cat(1) be? by formerly_proven on Monday July 18, 2022 @04:59AM (#32136072)
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.
Re:How efficient can cat(1) be? by Denvercoder9 on Monday July 18, 2022 @05:03AM (#32136097)
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.
Re:How efficient can cat(1) be? by formerly_proven on Monday July 18, 2022 @05:06AM (#32136112)
You can handle the cat foo bar baz > file case this way though, because stdout is a file then.
Re:How efficient can cat(1) be? by ariadneconill on Monday July 18, 2022 @05:18AM (#32136168)
that is why the article mentions it as an honorable mention :P