3 ms·
Stdout is frequently buffered slightly, but yeah, once you exceed it your `print(...)` line becomes blocking, and the execution moves to your terminal until it
by Groxx 4y ago
Stdout is frequently buffered slightly, but yeah, once you exceed it your `print(...)` line becomes blocking, and the execution moves to your terminal until it displays or discards it, freeing room in that buffer.
With large amounts of output, that can be a massive amount of time. As a really simple example, try `time dd if=/dev/random bs=1k count=1000` to print a megabyte of random data, vs `... > /dev/null`.