[fpc-devel] Performance of string handling in trunk

Michael Van Canneyt michael at freepascal.org
Thu Jun 27 09:51:03 CEST 2013



On Thu, 27 Jun 2013, Michael Schnell wrote:

>
>> 2) Nothing is copied on an assignment to a string variable, except the 
>> reference to the memory object.
>> 
> Sorry,  I erroneously thought about the variable itself being ref counted, 
> while in fact the variable is a pointer to the (hidden) String management 
> record, which is the ref counted entity and holds the content pointer to the 
> String array.

There is no content pointer. 
The string array is appended to the "record"

Michael.



More information about the fpc-devel mailing list