From: Johan Lindvall (johan.lindvall_at_[hidden])
Date: 2002-02-25 06:30:25
>About the benchmark : it was taking a lot of time before, because the
>NullStream class was not compiling with MSVC and it had been replaced by
>a stringstream, whose buffer was not emptied between each iteration of
>it seems MSVC is bad at growing stringstream's internal buffer
>dynamically 10.000 times.
FWIW, this is a known VC6 problem, which has been addressed. I quote from
"class basic_stringbuf grows its buffer by fixed-size increments, which can
be very slow if the buffer gets very large."
The fix is listed on the quoted page.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk