[fpc-devel] What does fpc_ansistr_unique do?

Michael Van Canneyt michael at freepascal.org
Fri Aug 31 12:32:39 CEST 2012



On Fri, 31 Aug 2012, Amir wrote:

> Hi,
>
>  I was profiling my code, that I noticed that there are about 2M calls to 
> fpc_ansistr_unique function (5% of the CPU time). I could not find any 
> reference to what this function does and/or who calls this function. I 
> appreciate any help in this regard.

It makes sure that the reference count of the string is 1, making a copy if necessary.

Michael.



More information about the fpc-devel mailing list