News for hackers. Stuff that matters.
Re:Why is printing “B” dramatically slower than printing “#”? by yeukhon on Monday February 24, 2014 @08:57PM (#7294729)
The problem is, who on earth would have thought of printing to terminal would have a big penalty?
Re:Why is printing “B” dramatically slower than printing “#”? by vehementi on Monday February 24, 2014 @09:22PM (#7294858)
I've run into it before... I've had compiling etc. limited by the speed & size of my console window.

Isn't it common knowledge though? Cat some 1GB file to your terminal and notice it takes more than the <100ms it takes to cat it to /dev/null.

Re:Why is printing “B” dramatically slower than printing “#”? by cabinpark on Monday February 24, 2014 @10:35PM (#7295264)
Never assume something is common knowledge! I've seen many links to mathematics things here on HN that I would consider "common knowledge" yet many people were unaware of them.
Re:Why is printing “B” dramatically slower than printing “#”? by agumonkey on Tuesday February 25, 2014 @03:29AM (#7296335)
You also realize it when adding 'quiet' to the bootloard kernel params. No output => boot time decreased (sometimes halved)
Re:Why is printing “B” dramatically slower than printing “#”? by est on Monday February 24, 2014 @10:42PM (#7295311)
> who on earth would have thought of

Everyone with >5 years of printf() debugging experience.

Re:Why is printing “B” dramatically slower than printing “#”? by zaphar on Monday February 24, 2014 @11:20PM (#7295515)
I remember minimizing the terminal window to make a script run faster. Taking the text rendering out of the execution path actually had a substantial speedup for long running scripts in some cases. It was one of those things you sort of picked up from other people along the way and assumed everyone knew.

Nowadays I don't know if the difference is noticeable enough to be common knowledge though.

Re:Why is printing “B” dramatically slower than printing “#”? by walljm on Wednesday February 26, 2014 @04:58PM (#7308303)
I still have to think about it when i'm piping debug statements to a log... Conditional breakpoints are a similar case.
Re:Why is printing “B” dramatically slower than printing “#”? by yusukeshinyama on Tuesday February 25, 2014 @12:21AM (#7295804)
When you're using GNU screen or tmux, you notice that the CPU usage of these processes is sometimes notable.

Here's another way to increase your CPU load with apparently doing nothing:

$ cat /dev/zero