Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Issue 1451 in v8: Array.forEach, filter, some, etc. are not special-cased for sparse arrays.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
codesite-nore...@google.com  
View profile  
 More options Oct 2 2012, 12:45 pm
From: codesite-nore...@google.com
Date: Tue, 02 Oct 2012 16:45:50 +0000
Local: Tues, Oct 2 2012 12:45 pm
Subject: Re: Issue 1451 in v8: Array.forEach, filter, some, etc. are not special-cased for sparse arrays.

Comment #2 on issue 1451 by middenv...@gmail.com: 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));

});


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.