registry.tsacquireLock busy-waits (while (Date.now() < wait) {}), burning CPU for up to 50ms per retry, and entry liveness is kill(pid, 0) — a reused pid keeps a dead entry alive.
Proposal: sleep in the loop; use startedAt vs process start time as a tiebreak for pid reuse.
Effort: S.
registry.tsacquireLockbusy-waits (while (Date.now() < wait) {}), burning CPU for up to 50ms per retry, and entry liveness iskill(pid, 0)— a reused pid keeps a dead entry alive.Proposal: sleep in the loop; use
startedAtvs process start time as a tiebreak for pid reuse.Effort: S.