News for hackers. Stuff that matters.
Re:Why is reading lines from stdin much slower in C++ than P... by spullara on Sunday March 11, 2012 @03:11PM (#3690987)
When I/O is slow the first thing to check is to make sure it is buffered. This is true in every language and library. Just turns out this guy ran into something with a default that matches the "read input from terminal" case instead of the "process millions of lines" case.

There are no comments on this comment yet.