Repository navigation
perf(renderer): scope folder review cache projections - #8136
Merged
Merged
Conversation
Contributor
📝 WalkthroughWalkthroughThe parent PR checks panel now obtains its projection through 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
6 tasks
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
* perf(renderer): scope folder review cache projections * fix(renderer): keep checks selector notifications constant-time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The visible folder-workspace PR Checks panel subscribed to the entire hosted-review, PR, and checks cache maps. Any background provider refresh therefore rebuilt every attached worktree row even when none of the changed entries belonged to that folder.
This change keeps the existing provider-aware projection builder and runs it behind a selector that records the exact cache keys it reads. Later store writes reuse the same projection unless one of those entry references changes. Missing relevant keys are recorded as undefined, so a later insertion still rebuilds immediately.
Performance evidence
Fixture: 100 attached worktrees, followed by 200 unrelated writes to each of the three review caches.
Exact-branch Electron validation used an isolated disposable profile and the real folder PR Checks surface:
Correctness
Validation
ELI5
The folder review panel used to rebuild all of its rows whenever any review cache changed anywhere in Orca. It now tracks only the review and check entries those rows actually use.