News for hackers. Stuff that matters.
Re:Why is reading lines from stdin much slower in C++ than P... by aeurielesn on Saturday March 10, 2012 @11:32PM (#3689548)
The almighty cin has it disadvantages when it comes down to performance. That's why I will always prefer scanf/gets, for a rather simple I/O performance boost.
Re:Why is reading lines from stdin much slower in C++ than P... by rwos on Sunday March 11, 2012 @07:50AM (#3690202)
Using gets() also makes writing exploits much quicker - win-win! ;-)

Sorry, I couldn't resist - you are of course right with the general stdio over std::iostream thing, though. I've also found that memory usage and executable size explode when using streams - though that's not C++'s fault per se, more a stdlib/compiler problem.