Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2012-08

What does fpc_ansistr_unique do?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Amir

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.

Amir

Reply by email

Michael Van Canneyt
to Amir
Amir wrote 6 lines
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.

Reply by email