perf: harden and accelerate Django indexing#48
Draft
forhappy wants to merge 11 commits into
Draft
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.
Summary
compass init,compass extract, andcompass updategraphify-outcontent and prunes files removed from the configured scopeRoot cause
The original Django run failed because two Python functions could receive the same provider symbol ID. After fixing that collision, profiling found repeated directory metadata calls, repeated AST ID rewriting, duplicated graph/index construction, cloned node and edge attributes during JSON export, and sequential analysis/publication work.
Django qualification
Release binary against
/Users/haipingfu/Github/django, using the saved all-project scope:The generated node-ID set and complete edge identity set match the established Django output exactly. All runs completed without the duplicate function-symbol error.
User-facing
compass initThree consecutive cache-valid runs of:
User-facing
compass updateThree consecutive unchanged updates:
The immediate update after the final init was also
0.95s / 0.96s.Forced full rebuild
Final isolated no-cache samples of:
The best observed forced sample was
4.79s / 4.86s. Forced full builds now center around five seconds, but a strict sub-five process wall is not guaranteed under macOS scheduling variance. Cache-valid init and normal update are consistently below five seconds.Checks
cargo fmt --all --checkcargo test -p compass-core -p compass-files -p compass-graph -p compass-resolve -p compass-outputcargo test -p compass-cli --tests -- --skip native_hooks_are_self_contained_safe_and_preserve_user_contentpython/usr/bin/time -pinit, update, and forced-update samplesgit diff --checkPer repository-owner direction,
graphify update .was not run.Related: #46