mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Introduce concurrency to asynchronous file linting for improved performance.
This commit is contained in:
parent
2851a691ba
commit
4286f68152
3 changed files with 101 additions and 54 deletions
|
@ -80,7 +80,7 @@ module.exports.includesSorted = function includesSorted(array, element) {
|
|||
let left = 0;
|
||||
let right = array.length - 1;
|
||||
while (left <= right) {
|
||||
/* eslint-disable no-bitwise */
|
||||
// eslint-disable-next-line no-bitwise
|
||||
const mid = (left + right) >> 1;
|
||||
if (array[mid] < element) {
|
||||
left = mid + 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue