mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 19:21:04 +01:00
refactor: remove logs
This commit is contained in:
@@ -18,14 +18,11 @@ helpers.mergeBatch = function (batchData, start, stop, sort) {
|
|||||||
}
|
}
|
||||||
let item = null;
|
let item = null;
|
||||||
const result = [];
|
const result = [];
|
||||||
var st = process.hrtime();
|
|
||||||
do {
|
do {
|
||||||
item = getFirst(batchData);
|
item = getFirst(batchData);
|
||||||
if (item) {
|
if (item) {
|
||||||
result.push(item);
|
result.push(item);
|
||||||
}
|
}
|
||||||
} while (item && (result.length < (stop - start + 1) || stop === -1));
|
} while (item && (result.length < (stop - start + 1) || stop === -1));
|
||||||
process.profile('meeerge', st);
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user