From: Dean M. B. <mik...@gm...> - 2009-12-18 23:31:23
|
Hi Jeroen! On Sat, Dec 19, 2009 at 12:33 AM, Jeroen Habraken <vex...@gm...> wrote: > > On Fri, Dec 18, 2009 at 08:07, Dean Michael Berris > <mik...@gm...> wrote: >> Hi Everyone, >> [snip] > > This is some very nice progress, Thanks! > there is one thing that comes to mind > though considering chunked transfers. These can get very large, and > storing them in a string could lead to a lot of reallocations of that > string I believe. Yeah, unless you use an ostringstream which manages memory better than the normal string. > Maybe a rope, > http://en.wikipedia.org/wiki/Rope_(computer_science), is an option as > a data structure to store the chunks. > Yup, but unfortunately they aren't part of the standard C++ library IIRC. > I'll have a proper look at the interface you propose tonight if I have time. Thanks, feedback is very much appreciated! -- Dean Michael Berris blog.cplusplus-soup.com | twitter.com/mikhailberis linkedin.com/in/mikhailberis | facebook.com/dean.berris | deanberris.com |