First request after an edit −19 % (§63.2, N1 of the 0.52.0 review): the flush split on the timing line (rebuild{lex parse defines analyze external lines publish documents}) named lex 29 + parse 26 of a 100 ms flush and no second lint or analysis; the lexer's two phases fused (the intermediate Vec<RawTok> gone), Parser::skip for the 178 bump() sites that discarded the token, a first-byte test in front of the operator table (tokenize 27.8 → 11.6 ms). Pinmux first menu after didChange 109 → 88 ms paired; every other row within noise; RSS not up. Token stream, diagnostics, AST and symbols digested over 4 807 files: 0 differ (re-derived by QA against a rebuilt 1b8723c); five gap fuzzers at their pins; corpus and opentitan byte-identical. Lead: an orphan trailing comment leads the next token instead of vanishing (unreachable, kept as a rule). QA: 16 attack tests, the flat-groups guard the harness relies on.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
1b8723ca1f
commit
c82978c3db
30 files changed
+1513
-260
No files matched your search
@@ -1350,3 +1350,43 @@ three are fixed in 0.53.0; no performance number moved.
|
||||
the retained-analysis parse work and the 31 ms facts decode, the
|
||||
whole-index merge per publication) are filed with the review's
|
||||
baselines and deferred to loop 3.
|
||||
|
||||
### 2026-09-12 — loop 3, round 1 (TODO §63)
|
||||
|
||||
**§63.1 is a correctness lane, not a performance one**, recorded here
|
||||
because its parity ran through this harness: a `bind` file's own
|
||||
occurrence of a renamed name is now edited (resolvable) or warned about
|
||||
(not), never silent — the resolver had asked the bind target's
|
||||
*connection* surface for a bare name and rooted a bind's hierarchical
|
||||
path in the writing scope (`FACTS_FORMAT` 19 → 20). `renamewarn` 1 758 →
|
||||
1 764 sentences, 1 758 − 8 = 1 750 held; every one of the 28 paired keys
|
||||
that moved is a bind file's new edit or warning; tail rename 326 ms
|
||||
(gate ≤ 330). `docs/features/rename-bind-occurrences/README.md`.
|
||||
|
||||
**§63.2 — the first request after an edit (N1 of the 0.52.0 review).**
|
||||
The 40 267-line pinmux cell — one-character `didChange`, then the
|
||||
all-family `codeAction` menu — **109 → 88 ms paired (−19.2 % dev;
|
||||
−19.6 % / −16.3 % on QA's re-take, order alternated)**; the
|
||||
unchanged-repeat cell and every other `offeredit`/`offerkinds`/`flush`/
|
||||
`diagnostics` row within noise; cold-scan RSS ~25 MiB lower, warm flat.
|
||||
The flush is now split on the `timing: codeaction` line
|
||||
(`rebuild{lex parse defines analyze external lines publish documents}`),
|
||||
which is what named the cost: **lex 29 ms and parse 26 ms of a 100 ms
|
||||
flush**, and *no* second lint and *no* second analysis of the revision
|
||||
(the snapshot and `with_semantics` already had those). Three changes, all
|
||||
in `vlog_parser`: the lexer's two phases fused (the intermediate
|
||||
`Vec<RawTok>` gone; `tokenize` 27.8 → 24.7 ms), `Parser::skip` for the
|
||||
178 `bump()` sites that discarded the token (`parse_tolerant` 17.5 →
|
||||
16.0 ms), and a first-byte test in front of the 42-entry operator table
|
||||
(`tokenize` 24.7 → **11.6 ms**, the single largest win). Token stream,
|
||||
parse diagnostics, AST and symbol table digested per file over 4 807
|
||||
files, re-derived by QA against a rebuilt 1b8723c: 0 differ; the five
|
||||
gap fuzzers at their pinned counts; `format --stdout` byte-identical over
|
||||
corpus and opentitan `hw/ip`; diagnostics and menus identical on the
|
||||
edited buffer (87 lines). **Filed, not fixed** (TODO loop-3 list): the
|
||||
token clone into `parse_tolerant` (3.9 ms — the parser mutates the
|
||||
stream it is given, so it cannot be handed over while `Document::tokens`
|
||||
is read for comments), `analyze` (9.4 ms), `resolve_external` (4.7 ms),
|
||||
and ~6 ms dropping the previous revision's products on the request path.
|
||||
`docs/features/perf-first-after-edit/README.md`; evidence
|
||||
`~/.cache/lucisv-perf/63-2/`.
|
||||
Reference in new issue
Block a user