perf(ui): reduce Linux workspace switch overhead#358
perf(ui): reduce Linux workspace switch overhead#358pascalandr wants to merge 4 commits intoNeuralNomadsAI:devfrom
Conversation
Experiment with mounting only the active workspace shell, add targeted Tauri/Linux perf instrumentation, and include a Linux/Tauri light-render mode to help investigate the remaining prompt lag on real hardware.
|
I want you to perform the gatekeeper checks for latest PR state check for regressions |
|
Gatekeeper review of the latest PR state. Assumption: you wanted a ruthless PR-quality review of the current diff against Findings:
Why this blocks:
Better implementation:
Why this blocks:
Better implementation:
Why this is risky:
Better implementation:
Validation notes:
Gatekeeper verdict: not ready yet. I would want the Linux rendering changes gated, and the tab-lifecycle optimization narrowed so it does not regress sidecars and other non-workspace tab state. -- |
Make perf benchmarking opt-in, gate the Linux light-render experiment behind an explicit flag, and keep sidecar tabs mounted so the workspace-shell optimization does not reset unrelated tab state.
|
I want you to perform the gatekeeper checks for latest PR state check for regressions |
|
Gatekeeper review of the latest PR state. Assumption: you wanted a fresh review of the current branch head after the follow-up fixes, focused on regressions and stronger implementation choices, not a request for code changes from me. Findings:
Why this still matters:
Better implementation:
What looks fixed from the previous review:
Residual note:
Gatekeeper verdict: closer, but not fully ready yet. I would want the instance-shell lifetime decoupled from -- |
Keep the mount optimization scoped to actual tab switching by leaving the active instance shell mounted while the folder-selection overlay is open, preserving instance-local UI state outside the targeted workspace-switch path.
|
I want you to perform the gatekeeper checks for latest PR state check for regressions |
|
Gatekeeper review of the latest PR state. Assumption: you wanted a fresh review of the current branch head after the latest follow-up fix, focused on regressions and stronger implementation choices, not a request for code changes from me. Findings:
What changed relative to the previous review:
Residual risks / testing gaps:
Gatekeeper verdict: current diff looks acceptable from a regression-scope perspective. I do not have a remaining code-quality blocker on the latest PR state. -- |
Refs #330
Summary
Measured Improvement So Far
In the Linux VM used for investigation, the measured workspace-switch path improved from roughly ~46ms average to ~33ms average after mounting only the active instance shell.
Perf Experiment Flags
localStorage.setItem(\"perf330-bench\", \"1\")localStorage.setItem(\"perf330-light-render\", \"1\")Reload after setting either flag.
Still Under Investigation
libEGL/DRI3), so this PR remains a draft for validation on a real Linux machineValidation So Far
npm run build --workspace @codenomad/uicargo build.debfrom this branch for local testing