From Dev.to
Flush on a Deadline, Not on a Newline: Replacing Line-Buffered Output
One byte is quietly taxing almost every command-line program you run: the newline at the end of a log line. Not because the byte itself is expensive, but because of what your C library or language run...
