Repository navigation
Speed up full index rebuilds with parallel parsing - #402
Open
Aymen (aymenfurter) wants to merge 2 commits into
Open
Aymen (aymenfurter) wants to merge 2 commits into
Aymen (aymenfurter) wants to merge 2 commits into
Conversation
Distribute cold parsing across processes and apply results in serial order. Reduce repeated work in edit replay, CLI event decoding, and question detection. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: bf81c47d-e9db-45ea-94b7-4c302c92f8fd
github-actions
Bot
requested review from
TamasBoncz and
Sanjay Singh (san360)
November 30, 2026 09:37
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: bf81c47d-e9db-45ea-94b7-4c302c92f8fd
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
5fc82d53deb499bbeb57c38fbf78dfc20df2f661↑ The packaged extension used all 11 shards in VS Code without falling back to the coordinator.
↑ The repository check passed after the final changelog update.
↓ Full-history timings and output comparisons cover one Mac and one fixed snapshot.
Description
A full rebuild made users wait more than two minutes before they could use the dashboard on a large session history. This change parses workspace folders and external sources in parallel. Each child process records its changes; the coordinator applies them in the original serial order. The parser also avoids repeated work in edit replay, CLI event decoding, and question detection. It does not reuse an existing index for a full rebuild. Set
AEC_PARSE_SHARDS=0to use the serial path.On one Mac, with the same real history and an empty index cache before each run:
main(7877280)A separate standalone comparison on that snapshot returned the same SHA-256 hash for both builds across sessions (including requests), workspaces, edit counts, and session-source mappings. The check kept session order and normalized map and set order. Both builds returned 11,452 sessions and 51,519 requests. This is a comparison of index data, not a byte-for-byte comparison of the saved cache against
main.Validation
npm run checkpassed: 4,254 tests passed and 4 were skipped.npm run test:vscodepassed. The separate real-data extension-host run used 11 shards with no in-process fallback.npm run packageandnpm run check-sizepassed.E2E_PORT=43212 npm run test:e2e: 257 passed, 7 skipped, 1 failed. The same Curiosity page layout assertion at 760 x 900 also failed on the base revision.Related Issues
N/A.
Checklist
npm run checkpasses (typecheck + lint + spellcheck + knip + tests)changelog.d/<PR number>.mdfragment