Skip to content

Speed up cdidx indexing and add symbols-only mode - #3655

Merged
Widthdom merged 7 commits into
mainfrom
codex/index-cdidx-dot-speed
Jun 18, 2026
Merged

Speed up cdidx indexing and add symbols-only mode#3655
Widthdom merged 7 commits into
mainfrom
codex/index-cdidx-dot-speed

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • Add cdidx . --symbols-only as a faster first-pass indexing mode that builds chunks, symbols, and issues while deferring reference graph extraction.
  • Reduce cdidx . work after branch or HEAD changes by reusing unchanged files before symbol/reference extraction when safe.
  • Optimize fresh full scans by batching reference finalization, avoiding unnecessary empty-database cleanup probes, and narrowing reference-line ID lookups to the current insert batch.
  • Reuse C# reference extraction line-state scanning to avoid a duplicate pass over source lines.
  • Update README, USER_GUIDE, changelog fragments, and regression tests for the new indexing behavior.

Notes

--symbols-only makes search, definition, symbols, and map workflows usable sooner. Reference graph commands remain degraded until a normal cdidx . run completes.

Testing

  • dotnet test

@Widthdom
Widthdom merged commit 9c2b974 into main Jun 18, 2026
11 checks passed
@Widthdom
Widthdom deleted the codex/index-cdidx-dot-speed branch June 18, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant