Repository navigation
perf(index): catch up an index kept open, and land through it - #117
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
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. |
PiquelChips
force-pushed
the
feat/server-index-refresh
branch
8 times, most recently
from
November 23, 2026 21:39
946fac7 to
3f7b122
Compare
A server keeps running, so it can keep the record index open between calls instead of reading it whole each time, which costs a lot in a big repository. A command also read the index several times: once for its working copy, then again for each conflict lookup and landing. `Index::refresh` catches an open index up with the op log, reading only the entries since its last catch-up, as `Index::open` does, and reads the index again if the op log no longer has them. The landing queue now finds statements through the caller's `Annotations`, caught up once it holds the target's lock, so a caller that keeps one open doesn't read it again. `Annotations::into_index` hands the index back for the next use, and the workspace commands pass the index they read to their conflict lookups and landings.
PiquelChips
force-pushed
the
feat/server-index-refresh
branch
from
November 23, 2026 22:51
3f7b122 to
c415216
Compare
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.
A server keeps running, so it can keep the record index open between calls instead of reading it whole each time, which costs a lot in a big repository. Commands also read the index several times: once for the working copy, then again for each conflict lookup and landing.
Index::refreshcatches an open index up from the op log, reading only the entries since its last catch-up, and reads the index again if the op log no longer has them.Annotations, caught up once it holds the target's lock, so a caller that keeps one open doesn't read it again.Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)