On Fri, Oct 14, 2011 at 11:01 PM, ajg <[email protected]> wrote:

>    while ( s.length < 850 * 1024 ){
>        s += "x";
>    }
>
> If you call utf8value or asciivalue on this string it takes about 2-3s
> to complete.
>

You do understand that this allocates a NEW string on each concatenation,
right? JS strings are immutable - you cannot change them in-place. Changing
one creates a new copy.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

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

Reply via email to