Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 May : Slow appending to String

www.cryer.info
Managed Newsgroup Archive

Slow appending to String

Subject:Slow appending to String
Posted by:"Mikael Lenfors" (mika..@lenfors.se)
Date:Mon, 2 May 2005 18:04:57

Hello!

My task is to read a lot of external data and put it in a BlobField in a
database for later saving to file.

I have a standard string variable wich I'm appending data to. The append is
done houndred of thousand times with about 100 bytes each time (e.g S := S +
NewData). This seems to be a very uneffective way to do it, probably it has
to allocate more memory for each append. Any ideas how to improve it?

Regards, Mikael

Replies:

www.cryer.info
Managed Newsgroup Archive