News for hackers. Stuff that matters.
Re:Disabling npm's progress bar yields a 2x npm install spee... by arjie on Tuesday January 26, 2016 @06:08PM (#10976970)
Sometimes writing to the terminal can be the slowest part because it's unbuffered by default in an interactive prompt, so even just redirecting stdout to /dev/null (or even a file) can be faster. Had that happen some ten years ago, so my explanation could be out of date or misremembered but the effect was real.
Re:Disabling npm's progress bar yields a 2x npm install spee... by btilly on Tuesday January 26, 2016 @07:33PM (#10977393)
Your explanation is correct. That is the semantics of Unix stdio buffering as implemented by glibc. So across a wide variety of languages, you'll see a significant performance difference if you are doing lots of writes to the terminal.

On the other hand if you didn't do this, then interactive terminal programs would be entirely unusable.