No, don't know Delphi-Talk
Yes, I am worried about the memory allocation stuff 
Yes, and fragmentation and 
Yes, I use a lot of string stuff
So how can I deal efficiently with strings?

Wayne Roser

Borland's Delphi Discussion List <[email protected]> on Monday, 6 March 2006 at 
2:53 p.m. +0000
wrote:
>Robert Meek wrote:
>>      You said below:  "You know the admonition about increasing a
>> string's length by one 
>> character at a time? The same goes for dynamic arrays."
>>      But no, I don't believe I ever heard about that?
>
>I'm sure you have. It was just a topic over on Delphi-Talk this weekend, 
>for instance. Each time you change a string's length, you force a new 
>memory allocation and a copy of the old string into the new one. This 
>can lead to memory fragmentation, and it can also waste time.
>
>-- 
>Rob

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to