Try to reduce impact of full-text content processor
- Don't start checking for idle until UI is ready + 30 seconds - Increase idle delay from 5 seconds to 30 seconds - Increase interval from 100 ms to 200 ms
This commit is contained in:
parent
0d592a950c
commit
5c45652887
|
@ -65,7 +65,7 @@ Zotero.Fulltext = Zotero.FullText = new function(){
|
||||||
var _pdfInfo = null; // nsIFile to executable
|
var _pdfInfo = null; // nsIFile to executable
|
||||||
|
|
||||||
var _idleObserverIsRegistered = false;
|
var _idleObserverIsRegistered = false;
|
||||||
var _idleObserverDelay = 5;
|
var _idleObserverDelay = 30;
|
||||||
var _processorTimer = null;
|
var _processorTimer = null;
|
||||||
var _processorBlacklist = {};
|
var _processorBlacklist = {};
|
||||||
var _upgradeCheck = true;
|
var _upgradeCheck = true;
|
||||||
|
@ -99,7 +99,7 @@ Zotero.Fulltext = Zotero.FullText = new function(){
|
||||||
yield this.registerPDFTool('converter');
|
yield this.registerPDFTool('converter');
|
||||||
yield this.registerPDFTool('info');
|
yield this.registerPDFTool('info');
|
||||||
|
|
||||||
this.startContentProcessor();
|
Zotero.uiReadyPromise.delay(30000).then(() => this.startContentProcessor());
|
||||||
Zotero.addShutdownListener(this.stopContentProcessor.bind(this));
|
Zotero.addShutdownListener(this.stopContentProcessor.bind(this));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1092,7 +1092,7 @@ Zotero.Fulltext = Zotero.FullText = new function(){
|
||||||
function () {
|
function () {
|
||||||
Zotero.Fulltext.processUnprocessedContent(itemIDs);
|
Zotero.Fulltext.processUnprocessedContent(itemIDs);
|
||||||
},
|
},
|
||||||
100,
|
200,
|
||||||
Components.interfaces.nsITimer.TYPE_ONE_SHOT
|
Components.interfaces.nsITimer.TYPE_ONE_SHOT
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user