Skip to content

perf: bound worktree sparse probes - #4174

Merged
nwparker merged 1 commit into
mainfrom
nwparker/bound-worktree-sparse-probes
May 31, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/bound-worktree-sparse-probes

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Summary

  • cap listWorktrees sparse-checkout filesystem probes at 8 concurrent workers
  • preserve parsed sparse/bare short-circuits and output ordering
  • add a regression test that holds probes open and verifies max active probes stay bounded

Risk

Low. The change only limits concurrency around existing best-effort sparse detection and preserves the same return shape/order.

Verification

  • pnpm exec vitest run src/main/git/remove-worktree.test.ts src/main/git/worktree-list-paths.test.ts src/main/git/worktree.test.ts
  • pnpm run typecheck:node
  • pnpm lint
  • git diff --check

@nwparker
nwparker merged commit 75c9f49 into main May 31, 2026
2 checks passed
@nwparker
nwparker deleted the nwparker/bound-worktree-sparse-probes branch May 31, 2026 13:55
@nwparker nwparker added the risk:low Low risk change label May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:low Low risk change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant