(parseMs: number, maxSize: number)
| 136 | * and memory. |
| 137 | */ |
| 138 | export function workersWorthStarting(parseMs: number, maxSize: number): number { |
| 139 | return Math.max(1, Math.min(maxSize, Math.ceil(Math.sqrt(parseMs / WORKER_WORTH_MS)))); |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * How many files a worker may run ahead of the ordered commit. Once the window |
no outgoing calls
no test coverage detected