User:Bosco/Unsigned helper.js: Difference between revisions
From Test Wiki
Content deleted Content added
PageHistoryContentSearcher: drop `findMaxIndex` – with the recent overhaul, `findMaxIndex` is unnecessary (exponentialSearch will stop on its own), and `findMaxIndex` makes searches much slower |
dummy edit: `findMaxIndex` was originally added in Special:Diff/1236106652 as protection against infinite recursion, which was caused by buggy interval loading |
||
| Line 354: | Line 354: | ||
} |
} |
||
} |
} |
||
const foundIndex = await exponentialSearch(startIndex, null, startIndex + 10, async (candidateIndex, progressInfo) => { |
const foundIndex = await exponentialSearch(startIndex, null, startIndex + 10, async (candidateIndex, progressInfo) => { |
||
try { |
try { |
||