I use the assign and insert functions which should only require 1 resize per call (at most) and since I never free the memory this should only happen the first few time the function is called
I stuck in a reserve just in case but it made no difference > -----Original Message----- > From: Gareth Reakes > [mailto:[EMAIL PROTECTED] Behalf > Of Gareth Reakes > Sent: 18 March 2004 17:10 > To: [EMAIL PROTECTED] > Subject: RE: SAX v DOM speed > > > Hi, > > > I copy the data into a vector of chars and set a variable > > the vector is only ever cleared (not fully released) > > so once the memory has been got once it will remain > available for the next time > > Do you add the data 1 character at a time? If so that is potentially a > very large amount of vector resizing. Try setting the initial > size of your > vector to something large to see if this is a contributing factor. > > Gareth > > -- > Gareth Reakes, Managing Director +44-1865-811184 > Parthenon Computing http://www.parthcomp.com > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]