fastcat is an implementation of cat(1)
that uses Linux-specific system calls splice
and sendfile to write to stdout.
In situations where stdout is piped, splice is used; in all other cases,
sendfile is used. The combination of these calls avoids unnecessary copying to userspace.
One unfortunate side effect is that
$ fastcat FILE >> OUTis not supported as neither splice nor sendfile support appending to files.
bench is a powerful alternative to the time command,
and fastcat uses it for benchmarking.
$ make benchfastcat is released under the MIT License. Use of this source code is governed
by a MIT License that can be found in the LICENSE file.