feat: incremental + parallel indexing for large monorepos - #7
Merged
Conversation
Implements #5 and #6: Incremental indexing: - Compares file content hash before parsing - Unchanged files are skipped automatically - Deleted files are removed from the database - Second run on same codebase completes instantly Parallel indexing: - arbiterx map --workers 8 (or --workers 0 for auto-detect) - Uses ProcessPoolExecutor for multi-core parsing - Each worker gets its own TreeSitterParser instance - Single writer merges results into SQLite (no concurrency issues) - Only activates for 100+ files (overhead threshold) CLI changes: - Added --workers / -w flag (default: 1, sequential) - Added --force / -f flag (re-index all, ignore cache) - Output table shows files_total, files_indexed, files_skipped Closes #5, Closes #6
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
Implements incremental indexing (#5) and parallel indexing (#6) for large monorepos.
Changes
Incremental Indexing (default behavior)
Parallel Indexing (opt-in)
ProcessPoolExecutorfor multi-core parsingTreeSitterParser(no shared state)CLI Flags
--workers / -w— Number of parallel workers (default: 1)--force / -f— Re-index all files ignoring cacheTesting
Closes #5, Closes #6