This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Huge performance bottleneck with cin.read.
- To: Theodore Papadopoulo <Theodore dot Papadopoulo at sophia dot inria dot fr>
- Subject: Re: Huge performance bottleneck with cin.read.
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Wed, 7 Mar 2001 09:57:57 -0800 (PST)
- cc: libstdc++ at gcc dot gnu dot org
looks like the only performance hit is on cin/cout/cerr. This is to be
expected: they are no longer buffered. I'm just relieved that normal
string/file streams are ok, which is cool. I would actually expect
stringstreams to be faster than the old memory-based stream implementation.
One way around this is to acually use sync_with_stdio, providing this was
working. I'm working on that now.
-benjamin