Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…changed Every eviction helper already returns its input reference untouched when it evicts nothing, so the opening sweep in refreshAllGitHub can compare identities and return the previous state. Window resume then stops waking every store subscriber on a no-op sweep. Folds in the remaining unique optimization from #13711, which this PR supersedes on the lookup-indexing side. Co-authored-by: Orca <[email protected]>
* perf(renderer): index GitHub resume lookups * perf(renderer): skip the resume cache sweep publication when nothing changed Every eviction helper already returns its input reference untouched when it evicts nothing, so the opening sweep in refreshAllGitHub can compare identities and return the previous state. Window resume then stops waking every store subscriber on a no-op sweep. Folds in the remaining unique optimization from #13711, which this PR supersedes on the lookup-indexing side. Co-authored-by: Orca <[email protected]> --------- Co-authored-by: Orca <[email protected]>
|
Closing in favor of #13698 (merged as b44df2e), which supersedes this — with this PR's unique optimization folded in, so nothing here is lost. I cross-applied both PRs' test suites against each other's implementation. Both carry the identical
That guard plus this PR's two publication tests were ported onto #13698 in 5408439 before merge, verified by Credit for the skip-publish insight and the hidden-surface early return belongs to this PR. |
* perf(renderer): index GitHub resume lookups * perf(renderer): skip the resume cache sweep publication when nothing changed Every eviction helper already returns its input reference untouched when it evicts nothing, so the opening sweep in refreshAllGitHub can compare identities and return the previous state. Window resume then stops waking every store subscriber on a no-op sweep. Folds in the remaining unique optimization from stablyai#13711, which this PR supersedes on the lookup-indexing side. Co-authored-by: Orca <[email protected]> --------- Co-authored-by: Orca <[email protected]>
Summary
ELI5
When Orca became visible again, it walked every workspace and repeatedly searched the full project list—even when the UI was not showing PR or issue data. With many projects and remote-host workspaces, that work grew quickly. Now Orca skips the walk when nothing visible needs it; otherwise it builds one lookup table and reuses it.
Performance evidence
For
Wworkspaces andRrepos:O(W × R).O(W + R)..find()calls while preserving all 20 refresh enqueues.Screenshots
No visual change.
Testing
pnpm lintpnpm typecheckpnpm test— 49,472 passed / 101 skipped; the only failed suite is the pre-existing unpinned cross-version harness trying to extractv799from a missing staging checkoutpnpm build— not run; no build or packaging surface changedPost-rebase focused suites: 193/193 passed.
AI Review Report
Adversarial review checked cache semantics, Zustand publication behavior, duplicate-ID ordering, local/SSH/runtime owner routing, concurrency, and mixed-version compatibility. No P0, P1, or P2 finding was proven.
The implementation preserves the old first-match behavior for corrupt duplicate repo IDs and retains cache eviction, comment clearing, and expired refresh-state pruning before the new early return.
Cross-platform review found no macOS, Linux, or Windows-specific behavior: no shortcuts, labels, paths, shells, native modules, filesystem operations, or Electron platform branches changed.
Security Audit
No input parsing, command execution, path handling, authentication, secrets, dependencies, IPC/RPC schemas, protocol frames, persistence, or network endpoints changed. The change only removes redundant renderer traversal/publication and reuses already-resolved repo objects.
Notes
This directly targets renderer work triggered when Orca returns to the foreground. Remote hosts amplify the cost because they add projects and workspaces, but local and SSH-owned repos retain identical routing behavior.
Residual risk: performance evidence is deterministic operation counting rather than a packaged renderer wall-clock profile.