On Linux, the performance of cat(1) can be doubled when cat(1):ing from one pipe to another, by compiling with -DBUFSIZ=(1<<16) (the default pipe capacity). This is close to optimial for a read(3)/write(3) implementation.
pgpKj3MyxJW0x.pgp
Description: OpenPGP digital signature