(parseMs: number, maxSize: number)
| 161 | * and memory. |
| 162 | */ |
| 163 | export function workersWorthStarting(parseMs: number, maxSize: number): number { |
| 164 | return Math.max(1, Math.min(maxSize, Math.ceil(Math.sqrt(parseMs / WORKER_WORTH_MS)))); |
| 165 | } |
| 166 | |
| 167 | /** |
| 168 | * How many files a worker may run ahead of the ordered commit. Once the window |
no outgoing calls
no test coverage detected