Hi!
Does anyone out there know which of these approaches
to String concatenation is faster / superior ?
1. [String] += [String];
2. [String].concat([String]);
Cheers,
Paul
Printable View
Hi!
Does anyone out there know which of these approaches
to String concatenation is faster / superior ?
1. [String] += [String];
2. [String].concat([String]);
Cheers,
Paul
Hi,
Since String is class.Second approach to string concatenation would be
faster.First method involves operations like temporary object creation,compiler
checking for overloaded operator "+="etc.
-Vikas Patel
India.
"Paul Balmforth" <pab_online@yahoo.com> wrote:
>
>
>Hi!
>
>Does anyone out there know which of these approaches
>to String concatenation is faster / superior ?
>
>1. [String] += [String];
>2. [String].concat([String]);
>
>Cheers,
>Paul
>