string performance

  • Thread starter Thread starter Servé Lau
  • Start date Start date
S

Servé Lau

I have an application which is very string intensive, therefore I'm
wondering about the string performance.

suppose I use this construct

string getString()
{
....processing
return s;
}

Will this create a new string like it would in java or is it reference
counted?
Am I better off with storing a member veriable and do the processing there?

I'm sorry that I have to ask here. No time to test this myself and maybe
somebody else will learn from it.
 
Back
Top