Match sorted Corgi identifier ranges monotonically - #869
Merged
frankmcsherry merged 1 commit intoSep 9, 2026
Merged
frankmcsherry merged 1 commit into
frankmcsherry merged 1 commit into
Conversation
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.
Corgi reduce restarts searches for successive changed identifiers, while lopsided joins build owned needle columns. Share a monotone matching-range iterator that gallops across gaps and borrows the existing identifier slices. State is local to the iterator; sorted unique needles match complete runs in the sorted haystack.
Based directly on master-next after ownership merged as #868. The rebase preserves the complete source tree.
On the measured one-worker Reach and SCC workloads, maintenance time falls by 15.6% and 9.5%, respectively; load time falls by 5.8% and 5.9%. These are medians of four processes on Apple M4, with 1,000 edge replacements per epoch. Runtime changes: +102/-52 lines; tests: +39.
Validation: 131 selected library/integration tests passed again after rebasing; two existing tests ignored. Existing independent graph-oracle checks cover 240 snapshots per normal and instrumented binary