in reply to how many chars/bytes does STDOUT buffer
$ perl -MTime::HiRes=sleep -e'while(1){print ".";sleep 0.001}' | perl + -le'print sysread(STDIN,$rec,1024*1024)' 4096
(no, the sleep isn't strictly necessary, but it makes the buffering effect more obvious.)
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how many chars/bytes does STDOUT buffer (test)
by choroba (Cardinal) on Apr 02, 2015 at 13:38 UTC | |
by BrowserUk (Patriarch) on Apr 02, 2015 at 14:13 UTC | |
by tye (Sage) on Apr 02, 2015 at 13:48 UTC | |
by sandy105 (Scribe) on Apr 03, 2015 at 06:34 UTC | |
by Discipulus (Canon) on Apr 03, 2015 at 09:51 UTC | |
by tye (Sage) on Apr 03, 2015 at 13:12 UTC |