make bg tokenizer less sucky
This commit is contained in:
parent
6dd64b8117
commit
3b180113ef
1 changed files with 3 additions and 3 deletions
|
|
@ -23,10 +23,10 @@ var BackgroundTokenizer = function(tokenizer) {
|
|||
|
||||
// only check every 5 lines
|
||||
processedLines += 1;
|
||||
//if ((processedLines % 5 == 0) && (new Date() - workerStart) > 20) {
|
||||
if ((processedLines % 5 == 0) && (new Date() - workerStart) > 30) {
|
||||
self.fireUpdateEvent(startLine, self.currentLine-1);
|
||||
return setTimeout(self.$worker, 0);
|
||||
//}
|
||||
return setTimeout(self.$worker, 10);
|
||||
}
|
||||
}
|
||||
|
||||
self.running = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue