Comment #2 on issue 1451 by [email protected]: Array.forEach, filter,
some, etc. are not special-cased for sparse arrays.
http://code.google.com/p/v8/issues/detail?id=1451
Getting out of memory problems in Node for this.
Problem occurs with a very large sparse array - first index value that is
not undefined is in the millions.
With code of the form below, the debug statement never appears and an out
of memory error is reported after a couple of minutes.
var res = this.sparse.filter(function(x,i,a)
{
logger.debug(x);
return (x.isLoggedOn && (x.smallArr.indexOf(groupId) != -1));
});
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev