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
1 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ Zotero.Fulltext = Zotero.FullText = new function(){
|
|||
var _pdfInfo = null; // nsIFile to executable
|
||||
|
||||
var _idleObserverIsRegistered = false;
|
||||
var _idleObserverDelay = 5;
|
||||
var _idleObserverDelay = 30;
|
||||
var _processorTimer = null;
|
||||
var _processorBlacklist = {};
|
||||
var _upgradeCheck = true;
|
||||
|
@ -99,7 +99,7 @@ Zotero.Fulltext = Zotero.FullText = new function(){
|
|||
yield this.registerPDFTool('converter');
|
||||
yield this.registerPDFTool('info');
|
||||
|
||||
this.startContentProcessor();
|
||||
Zotero.uiReadyPromise.delay(30000).then(() => this.startContentProcessor());
|
||||
Zotero.addShutdownListener(this.stopContentProcessor.bind(this));
|
||||
});
|
||||
|
||||
|
@ -1092,7 +1092,7 @@ Zotero.Fulltext = Zotero.FullText = new function(){
|
|||
function () {
|
||||
Zotero.Fulltext.processUnprocessedContent(itemIDs);
|
||||
},
|
||||
100,
|
||||
200,
|
||||
Components.interfaces.nsITimer.TYPE_ONE_SHOT
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue