You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
! resurrect works on Windows across all three CLIs (Claude / Codex / Antigravity), but is noticeably slower than on WSL.
Timing (measured — 10 calls each, full path including the clipboard write)
Path
~per call
WSL (bash -> clip.exe via interop)
~105 ms
Windows Git Bash (Claude, direct)
~135-155 ms
Windows cmd/PowerShell -> resurrect.cmd -> bash.exe -> script (Codex/Antigravity)
~160 ms
Likely cause (to confirm further)
Every call spawns clip.exe (a Windows process) to set the clipboard — the dominant cost everywhere (~100 ms even on WSL, which spends almost all of it waiting on the interop spawn: user+sys ~= 0.1 s of 1.05 s for 10 calls).
Windows is slower on top of that because:
MSYS / Git Bash has no native fork() — bash startup + the clip.exe spawn are emulated, costing more CPU than WSL's native Linux fork (Git Bash user+sys ~= 1.1 s vs WSL ~= 0.1 s for 10 calls).
Codex/Antigravity add an extra process hop: cmd/PowerShell -> resurrect.cmd -> bash.exe -> script.
It is process-spawn overhead, not the script logic.
Intended approach
Measure & confirm (done — see table above).
Decide whether to optimize. Candidate fixes (all low value):
Drop the extra hop for Codex/Antigravity by making resurrect.cmd a standalone batch (removes the bash.exe spawn) — but duplicates logic (SSoT cost).
Background the clipboard write (| clip.exe &) — risky (race: script may exit before clip.exe finishes reading stdin).
Accept it: ~150 ms is fine for an interactive helper.
Observation
! resurrectworks on Windows across all three CLIs (Claude / Codex / Antigravity), but is noticeably slower than on WSL.Timing (measured — 10 calls each, full path including the clipboard write)
clip.exevia interop)resurrect.cmd->bash.exe-> script (Codex/Antigravity)Likely cause (to confirm further)
Every call spawns
clip.exe(a Windows process) to set the clipboard — the dominant cost everywhere (~100 ms even on WSL, which spends almost all of it waiting on the interop spawn: user+sys ~= 0.1 s of 1.05 s for 10 calls).Windows is slower on top of that because:
fork()— bash startup + theclip.exespawn are emulated, costing more CPU than WSL's native Linux fork (Git Bash user+sys ~= 1.1 s vs WSL ~= 0.1 s for 10 calls).resurrect.cmd->bash.exe-> script.It is process-spawn overhead, not the script logic.
Intended approach
resurrect.cmda standalone batch (removes thebash.exespawn) — but duplicates logic (SSoT cost).| clip.exe &) — risky (race: script may exit beforeclip.exefinishes reading stdin).Priority
Low — not important. Filed for tracking.