When comparing += and Array.join for building a string it might give a more
precise picture of the actual cost of building a string if the constructed
string is being used afterwards. E.g. include the time used to run a simple
RegExp on the string. The string tree built using += will most likely need
to be converted into a flat string before complex operations (like RegExp)
can be performed on it.

Regards,
Søren

On Thu, Feb 4, 2010 at 00:51, Kiswono Prayogo <[email protected]> wrote:

> yes, i have tried it too.. ''+=any faster than [any].join('')
> on simple operations any+any+any faster than [any,any,any].join('')
>
> --
> Regards,
> Kiswono P
> GB
>
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
>

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to