27 Jul
2007
27 Jul
'07
8:51 p.m.
Bill Lear wrote:
I have been searching the world in vain for a stringstream that works with a static buffer, and does not use the heap for memory allocation. We have an application that uses lots (12-16Gb) of memory. This puts a strain on the memory allocation routines, and when we want to create a small string we find that stringstream is very, very expensive, and sprintf into a static buffer much, much faster.
Does boost provide anything like this?
No, but there is std::(i/o)strstream. It's deprecated but it should work.