Revert "Do not call equal() for all items"

This reverts commit 0edf1fe27f9b1ce25d63b6024db5e5d32070d24d.
This commit is contained in:
rjbaucells 2015-05-05 20:05:50 -04:00
parent 0edf1fe27f
commit 1b02fc26c4

View File

@ -110,22 +110,11 @@ function factory (type, config, load) {
// check row exists in workspace
if (w[i] === mark) {
// check we need to process values
if (x) {
// invoke callback
var v = cf(x[i], bvalues[k]);
// check for zero value
if (!ef(v, zero)) {
// store value
x[i] = v;
}
else {
// remove mark (index will be updated below)
w[i] = null;
}
}
if (x)
x[i] = cf(x[i], bvalues[k]);
}
else {
// update c (i not yet on c)
// update c
cindex.push(i);
// update workspace
w[i] = mark;
@ -142,10 +131,12 @@ function factory (type, config, load) {
while (k < cindex.length) {
// row
i = cindex[k];
// check we have a mark @ i
if (w[i] === mark) {
// value @ i
var v = x[i];
// check for zero value
if (!ef(v, zero)) {
// push value
cvalues.push(x[i]);
cvalues.push(v);
// increment pointer
k++;
}