If I have

var arr = new Array(50); // Should be dense, I guess?
arr[20] = 0;
arr[40] = 1;
arr[20] = undefined;
var keys = Object.keys(arr);

Will this access pattern make v8 think arr is a sparse array and change to 
using a hash table?

Also, is copying from old back store to new back store unavoidable when I 
grow the array by doing
for (var i = 50; i < 100; i++) {
  arr[i] = 0;
}

? Thanks.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to