Re:Why is reading lines from stdin much slower in C++ than P...
by mikeash on Sunday March 11, 2012 @09:51PM
(#3692005)
I'm not sure this quite makes sense. The buffering can already be disabled, clearly, since that's what's being discussed. The non-buffering implementation could be easily placed atop FILE (I don't know the details, but I can't imagine a FILE-based iostream implementation being at all complex) at which point you have a buffered implementation that also cooperates with pure C stdio. iostream would need buffering for other operations, but could just leave it off permanently for stdio, and the switch already exists.
[ Parent
| on HN ]
There are no comments on this comment yet.