On Mon, Jun 27, 2011 at 3:46 PM, [email protected] <
[email protected]> wrote:

> Thanks, that clarifies a few things in my mind.
>
> So then it should be trivial for the engine to remove duplication of
> identical string literals.
>

As far as i know (i might be wrong), it does not explicitly do that. e.g.

var x = "a";
var y = "a";

if i'm not mistaken, those are internally two copies. However:

var x = "a";
var y = x;

is internally one 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