use unzip.Extract, Cpu soars from 4% to 50% and does not recover.
The feature I used in the electron program, removing unzip.Extract cpu will steadily decrease, plus this sentence will rise and not decrease.
The task in Parse.prototype._flush has been triggered, causing the cpu to remain busy.
`this._pullStream.once("end", function () {
self._streamEnd = true;
});
this._pullStream.once("finish", function () {
self._streamFinish = true;
});
Parse.prototype._flush = function (callback) {
if (!this._streamEnd || !this._streamFinish) {
return setImmediate(this._flush.bind(this, callback));
}
var r = callback();
this.emit('close');
return r;
};`
Following the example in README.md, I found that the event registered above was not triggered, causing theParse.prototype._flush to be called again. It ends up with a cpu busyness.
use
unzip.Extract
, Cpu soars from 4% to 50% and does not recover.The task in Parse.prototype._flush has been triggered, causing the cpu to remain busy.
`this._pullStream.once("end", function () { self._streamEnd = true; }); this._pullStream.once("finish", function () { self._streamFinish = true; });
Parse.prototype._flush = function (callback) { if (!this._streamEnd || !this._streamFinish) { return setImmediate(this._flush.bind(this, callback)); }
var r = callback(); this.emit('close'); return r; };`
Following the example in README.md, I found that the event registered above was not triggered, causing the
Parse.prototype._flush
to be called again. It ends up with a cpu busyness.Is it wrong for me to deal with it?