Resolve cost scales with the repo, not the edit: scoped pass rebuilds whole candidate tables; tier 1R quadratic under its budget; startup quick_check twice; change_impact loads the whole graph #384
Labels
No labels
code-review
correctness
dos
performance
security
severity/high
severity/low
severity/medium
tech-debt
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
h-dv/code-index#384
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Measured by the 2026-10-15 performance review with 0.39.0 on copies of rust-analyzer and a synthetic 10x tree. The figures below are from a quiet machine unless noted. The cold resolve is single-threaded, and the writer phase has no stage timings.
PRAGMA quick_checktwice, once in the daemon's open and once in the watcher's. It reads every page: 1.15 s on rust-analyzer and 11 s on the 10x tree. Run it once, or only after an unclean shutdown.symbol_edgeson every call (graph.rsload_edges): 200–290 ms on rust-analyzer, and a hard refusal above 1M edges. Add an index on(to_id, from_id)and walk the graph by frontier.resolution_gapsruns its candidate-pool join twice: 1.37 s on rust-analyzer, 17.7 s at 10x.refscost about 36% of ref-insert time.Reply size is tracked separately.
Released in v0.40.0 (https://git.h-dv.de/h-dv/code-index/releases/tag/v0.40.0, PR #388, merge
a48fb945): a scoped re-index works only on the references the edit can affect (rust-analyzer body edit 3.5 s → 1.0 s, resolved results identical on all nine pinned repos); the startup integrity check runs once per database file;change_impactandexplain_dependencywalk the call graph without loading all of it;resolution_gapsis faster.