orca
orca copied to clipboard
Reduce remote runtime terminal input latency
Summary
- remove the fixed 8 ms remote runtime terminal input batch delay while preserving same-turn input coalescing
- fast-flush the first small remote runtime terminal output after quiet periods, while keeping sustained output batching
- document benchmark results comparing local PTY #2283, remote runtime transport, and xterm/VS Code rendering
Benchmarks
- Remote input batch p50: ~9.1 ms -> ~0.001 ms
- Remote runtime first output batch p50: ~6.4 ms -> ~0.001 ms
- Local PTY #2283 remains separate and already covers the local IPC path
- Controlled headed Chromium comparison found Orca xterm and VS Code xterm in the same class; visible output is mostly next-frame bounded around ~16.6 ms
Validation
- npm test -- --run src/main/ipc/pty.test.ts src/main/runtime/rpc/terminal-output-batching.test.ts src/main/runtime/rpc/terminal-multiplex.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.test.ts
- pnpm exec oxlint src/main/ipc/pty.ts src/main/ipc/pty.test.ts src/main/runtime/rpc/methods/terminal.ts src/main/runtime/rpc/terminal-output-batching.test.ts src/main/runtime/rpc/terminal-multiplex.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-batching.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.test.ts
Made with Orca 🐋