Skip to content

tighten ticker to 2ms, cheapen tick check - #574

Open
breardon2011 wants to merge 1 commit into
mainfrom
fix-exec-hold
Open

tighten ticker to 2ms, cheapen tick check#574
breardon2011 wants to merge 1 commit into
mainfrom
fix-exec-hold

Conversation

@breardon2011

Copy link
Copy Markdown
Contributor

awaitExecDone polled full GetResult every tick, which snapshots the scrollback ring — so a tight poll re-copied output ~500×/s per in-flight exec. Switch the per-tick check to a bare ExitCode pointer read and assemble the result (GetResult) only once, on completion. This decouples poll frequency from cost, letting us tighten the ticker 10ms→2ms at ~zero overhead (worst-case wait ~2ms). Adds poll_ms telemetry. Dev: 33/33 inline hits, 0 misses, 28/33 at poll_ms=0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant