Remove dataset input caps and simplify preparation

This commit is contained in:
Boki 2026-10-21 23:34:10 -04:00
parent 6bd671d92a
commit 007e35c747
17 changed files with 175 additions and 620 deletions

View file

@ -0,0 +1,10 @@
import { setImmediate } from 'node:timers/promises';
export const PREPARATION_BATCH_SIZE = 2048;
/** Yield to cancellation, timeouts and lease heartbeats between bounded CPU batches. */
export async function preparationCheckpoint(signal?: AbortSignal): Promise<void> {
signal?.throwIfAborted();
await setImmediate();
signal?.throwIfAborted();
}