You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(index): optimize initial indexing from 28.5s to 13s (2.2x faster)
Four targeted optimizations addressing measured bottlenecks in the
extraction pipeline for large Swift projects (~2000 files):
- Thread-local tree-sitter parsers: eliminate per-file Parser::new() +
set_language() allocation in both Swift and Rust extractors
- Pre-canonicalize module directories: ModuleMap.with_fallback() now
canonicalizes dirs once at construction, removing O(M×N) redundant
syscalls from the parallel extraction loop
- Outward-expanding snippet search with radius limit: replace O(N×L)
full-source scan per node with outward search from expected line,
capped at 200 lines. The worst straggler (Strings.generated.swift,
12K nodes, 28K lines) dropped from 18.5s to 0.4s
- Eager index store warmup: buildFileIndex() now runs during
prepare_project instead of lazily blocking all rayon threads on
first extraction
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments