perf: harden and accelerate Django indexing#48
Merged
Conversation
forhappy
marked this pull request as ready for review
July 26, 2026 14:49
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
compass init,compass extract, andcompass updategraphify-outcontent and prunes files removed from configured scopeRoot cause
The original Django run failed because two Python functions could receive the same provider symbol ID. After fixing that collision, sampling showed repeated AST ID rewriting, full graph inventory clones, sequential canonical serialization, Unicode normalization of already-normalized IDs, and thousands of cache/output syscalls.
Django qualification
Release binary against
/Users/haipingfu/Github/django, using the saved all-project scope:The canonical
program.jsonbytes, sorted node-ID set, and complete sorted edge-identity set match the established Django output exactly. All runs completed without the duplicate function-symbol error.Current user-facing commands
The init run reused 3105 valid extraction entries and the immediate update reused the complete sealed generation.
Forced full rebuild qualification
After one discarded forced warm-up, three recorded isolated runs used a new temporary output directory each time:
Every recorded forced build reparsed all indexed sources, rebuilt Program IR, clustering, reports, graph output, caches, and completion seals before exit.
Checks
cargo fmt --all --checkcargo test -p compass-analysis -p compass-core -p compass-files -p compass-graph -p compass-ir -p compass-languages -p compass-output -p compass-resolvecargo test -p compass-cli --tests -- --skip native_hooks_are_self_contained_safe_and_preserve_user_contentpython/usr/bin/time -pinit, update, and forced-update measurementsgit diff --checkPer repository-owner direction,
graphify update .was not run.Related: #46