re PR libstdc++/16401 (ostringstream in gcc 3.4.x very slow for big data)
authorPaolo Carlini <pcarlini@suse.de>
Wed, 7 Jul 2004 21:48:01 +0000 (21:48 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 7 Jul 2004 21:48:01 +0000 (21:48 +0000)
commit9f9000d17793db4e2e323ff1f03f3462c2aab75f
treeada7289afa96cb40c16f8be542b8129e99b4a7a3
parentf4f58d94866e6462e143f6f2b436d90085d92a32
re PR libstdc++/16401 (ostringstream in gcc 3.4.x very slow for big data)

2004-07-07  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/16401
* include/bits/sstream.tcc (overflow): When reallocating _M_string
use an exponential grow policy.
* testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
* testsuite/performance/27_io/stringbuf_overflow.cc: New.

From-SVN: r84235
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/sstream.tcc
libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/performance/27_io/stringbuf_overflow.cc [new file with mode: 0644]