v0.7.5
Patch Changes
-
#96
cc8daedThanks @SutuSebastian! - Performance: full-rebuild wall down ~21% on small trees and ~18% on a real-world ~2k-file external corpus. Headline contributor:collectFilesswitched to a singletinyglobbycall withignorepatterns (collect_ms -93%, file set bit-identical viafollowSymbolicLinks: false). Bindings/cycles/re-exports phase now keeps the bulk-INSERT PRAGMA-OFF window open through full rebuild (bindings_ms -33% on the 2k corpus). Plusquery_batchsingle connection, incremental double-read kill, sharedcountLineshelper,stmtCacheplaceholder memo, SQLitebusy_timeout, adapterMaplookup, byte-order sort, FTS5 batched delete, andgetAllFileHasheshoist.Instrumentation:
IndexPerformanceReportnow surfacesbindings_ms,module_cycles_ms,re_export_chains_ms(previously rolled intototal_mswith no breakdown). SetCODEMAP_PERFORMANCE_JSON=<path>to dump the report as JSON post-run (no new CLI flag added).Knobs:
CODEMAP_PARSE_WORKERS=N(clamped[1, 32]) overrides the defaultmax(2, min(cpus, 6))worker count.bun run check:perf-baseline+ a non-blocking CI job (📈 Perf baseline (self-index)) guard against per-phase regressions vsfixtures/benchmark/perf-baseline.json;CODEMAP_PERF_RUNS/CODEMAP_PERF_REGRESSION_PCT/CODEMAP_PERF_NOISE_FLOOR_MStune the checker.Behavior change (correctness hardening):
queryRows(the implementation behindCodemap.query(),codemap applyrecipe SQL execution,bun run test:golden, and thecmd-queryprint/grouped paths) now setsPRAGMA query_only = 1to mirrorexecuteQuery’s read-only enforcement. DML / DDL slipping through these paths now errors at SQLite instead of mutating the database. All these call sites are contractually read-only; this turns a contract into an enforceable boundary. Existing tests pass unchanged. Anyone who relied on undocumented mutation throughCodemap.query("DELETE FROM ...")would now get an error — but that was always API abuse.Full design context:
docs/plans/perf-triangulation-rollout.md(synthesis + execution rollout of 5 independent perf/architecture audits authored 2026-05-17).