data.csv文件大小可能是100M~300M
现在,发生内存泄漏错误。(IE / Chrome)
我怎样才能解决......?
加载这么长时间没问题
Papa.parse("/data.csv",{
download: true,
delimiter: ",", // auto-detect
newline: "\n", // auto-detect
header: false,
dynamicTyping: false,
preview: 0,
encoding: "",
worker: true,
comments: false,
step: function(result, handle) {
if (result.data[0][0]) {
data.push(result.data[0]);
}
},
complete: function() {
parseGene(Date.now(), scaffold, data, 0, "", [], [], 0);
},
error: function(e) {
console.log(e);
},
skipEmptyLines: false,
chunk: function(results) {
rows.concat(rows, results.data);
},
fastMode: false
});