Release 0.65.6: saving a file no longer re-indexes the workspace
ci / checks (push) Successful in 59s
ci / corpus (push) Successful in 16s
release / build-and-publish (push) Failing after 4m55s

TODO §71.1. On OpenTitan hw (4 058 files) every save cost ~160 ms of
whole-index work, twice (the save and VS Code's watcher echo), and watcher
events for files the index could not hold started whole rescans.

- vlog_semantic: resolution records every table lookup per reading file,
  misses included (workspace/dependents.rs, references.rs, replace.rs); an
  update re-resolves the edited file and the readers of keys whose values
  changed in what resolution reads. An unchanged record merges nothing. When
  the readers hold more than an eighth of all references, old results are
  removed in one pass over the postings.
- lucisv_server: watcher events are classified per file (state/watched.rs);
  the include graph keeps every include line as written and re-resolves the
  lines a named path could satisfy, in one pass per event; an event naming
  more paths than half the index takes the single rescan; an open buffer the
  index does not hold joins on its first save; completion tables are rebuilt
  only for the names a file declares. Every save still republishes every open
  buffer. The line-length lint follows the formatting style's width.
- Fixed on the way: removing an included header left other files' include
  edges pointing at it.

Typical saves: comment or watcher echo <0.3 ms, local signal 4 ms, package
member 12 ms; warm startup +40..120 ms for the readers table.

QA failed the first cut on four stale answers found with an independent
fresh-server oracle; all four are fixed and are differential tests. Dev
(three rounds), QA (two rounds) and lead review:
docs/features/localized-reindex/README.md. TODO.md files lane 71.7 from
what the QA rounds and an investigation found in earlier releases too.

Version bump (Cargo.toml, Cargo.lock, editors/vscode/package.json and both
package-lock.json spots); notes in CHANGELOG.md (## 0.65.6) and
editors/vscode/CHANGELOG.md.

Gates: tools/gates.sh PASS on this tree; vlog_semantic 435/0,
lucisv_server 2011/0, lucisv_mcp 384/0.

Co-Authored-By: Claude Mythos 5.2 <[email protected]>
This commit is contained in:
Guoliang ChenandClaude Mythos 5.2 committed 2026-11-19 08:52:01 -08:00
1 parent 80017a59f2
commit 58d3db3e3c
36 files changed
+4536 -323

No files matched your search

File diff suppressed because it is too large. Load diff
+24
View File
@@ -1444,3 +1444,27 @@ A warm build is walk 210 ms + store read 87 ms + read/hash/decode 318 ms +
merge 204 ms; a cold one parses instead (1 387 ms). The rows are not
like-for-like with the server's (it scans in stages and answers during the
scan); they sit side by side so a regression in either shows.
### 2026-11-19 — localized reindex (TODO §71.1)
What one save costs the index on the full OpenTitan `hw` tree (4 058 files,
scope `workspace`, 10 buffers open), measured over LSP with the real release
server and in-process with `state::tests::reindex_perf` (release,
`--test-threads=1`); medians, the machine shared with another lane's builds.
Details and the method: `docs/features/localized-reindex/README.md`.
| | before (7408fac) | after |
|---|---:|---:|
| `reindex_one`, any edit, any file | 141–158 ms | — |
| …the watcher's echo of a save / an unchanged record | 153–176 ms, everything republished | 0.07–1.1 ms, nothing sent |
| …a local signal in a module (`uart_tx`, `prim_flop`) | 144–145 ms | 5.2 ms |
| …a package member added (`uart_reg_pkg`) | 148 ms | 11.7 ms |
| …a line above everything in `prim_flop.sv` (125 instantiating files) | 144 ms | 61 ms |
| watcher event for a `.sv` the scope cannot take | 746 ms whole rescan | 3.5 ms, nothing |
| whole merge (`absorb`, startup / cached rescan) | 135 / 165 ms | 158 / 189 ms |
| warm startup scan (fix round, QA's `perf.py`, two runs) | 1 113 / 1 124 ms | 1 171 / 1 148 ms |
| `prim_mubi_pkg` member added, 677 importers (fix round) | 162 ms | 92 ms |
| readers table | — | 13 806 keys, 69 222 entries |
| mention census, one lint pass (average / worst file) | 51 µs / 2.8 ms | unchanged |
Probes: `tools/guard.sh -- cargo test --release -p lucisv_server reindex_perf -- --ignored --nocapture --test-threads=1`.