3 ms·
If your only overhead is filling an 8K buffer, I don't think your user is going to care. Taking one microsecond instead of one nanosecond doesn't matter all th
by nostrademons 9y ago
If your only overhead is filling an 8K buffer, I don't think your user is going to care. Taking one microsecond instead of one nanosecond doesn't matter all that much when you're going to lose way more than that in pipes, the kernel, the program you're piping it to, etc.
- statictype 9y agoBut what's the use case for a large volume of continuous output? It feels like we're optimizing for the wrong use case
- pmontra 9y agoMaybe filling a disk or flooding a network connection as in yes | ssh server "cat > /dev/null" But yes take arguments so there might be more use cases: $ man yes NAME yes - output a string repeatedly until killed SYNOPSIS yes [STRING]... yes OPTION DESCRIPTION Repeatedly output a line with all specified STRING(s), or 'y'.