Re:Why stdout is faster than stderr?
by helsinkiandrew on Wednesday January 10, 2024 @03:19PM
(#38942560)
I thought this is a general unix thing. stdout is buffered so output to other apps/terminal is efficient, whilst stderr isn’t buffered because it’s usually to the console with (smaller) error messages that should be seen immediately in case of app crashes etc.
[ Parent
| on HN ]
POSIX only specifies that stderr in C programs isn't block ("fully") buffered by default. I believe it allows for line buffering. https://pubs.opengroup.org/onlinepubs/9699919799/functions/s...
POSIX doesn't govern Rust at all.