Perf take 5 closed (§60.5): perf README entry with the accepted numbers, the plan's and the tracker's status lines
This commit is contained in:
1 parent
32204eba71
commit
b2a5f0a171
2 files changed
+45
-1
No files matched your search
@@ -1240,3 +1240,47 @@ capability shape, fresh-process flag, edit fingerprint — and **no document may
|
||||
quote a row whose `status` is not `ok` or `capture`**. `tools/perf/README.md`
|
||||
has the full vocabulary; the reference measurements are in
|
||||
`docs/perf/take5-tracking.md`.
|
||||
|
||||
### 2026-09-08 — take 5, the implementation round (TODO §60)
|
||||
|
||||
The owner's plan (`docs/performance_take5.md`, tracker
|
||||
`docs/perf/take5-tracking.md`, baseline evidence `docs/perf/take5-baseline/`)
|
||||
implemented in seven lanes, each dev → QA → lead, each measured by the
|
||||
committed harness against the §P0 reference on the unchanged 0.50.0 binary.
|
||||
Feature READMEs: `docs/features/perf5-p{0,1,2,3,4}/`. Every number below is a
|
||||
repeat median on opentitan `0098135264`, M1 Max, paired against that
|
||||
reference; the tracker holds the raw rows and the per-stage experiments.
|
||||
|
||||
| what | reference (0.50.0) | after | lane |
|
||||
|---|---:|---:|---|
|
||||
| `codeAction` on a no-offer comment, 42 192-line file | 310 ms | **24 ms** | P1a/b — lint/config/fence gated by the requested kinds; the fence answer asked only when a fix exists and memoized per `Document`; the four offer selectors read the document's own parse; a parse counter proves a repeated offer parses nothing |
|
||||
| definition queued behind that comment | 309 ms | **25 ms** | same |
|
||||
| `codeAction` at `aes_reg_top` (ports family) | 22 ms | **5.5 ms** | P1c — offer predicates: the lightbulb from the plan-time checks, the click still recomputes and verifies |
|
||||
| `codeAction` at `aes`; organize-imports offer | 8 / 15 ms | **1.7 / 4.9 ms** | P1c |
|
||||
| tail rename (`state_q`, 238 files) | 780 ms | **388 ms (2.01×)** | P2 — one parse + analysis per file (`FileFacts::analyzed`), the after-index absorbed from the edited files' records, every verifier check unchanged and re-attacked; the `warnings` stage lexes each file once |
|
||||
| ordinary `aes` rename (9 files) | 141 ms | **92 ms** | P2 |
|
||||
| extract-module command | 246 ms | **149 ms** | P2 (collateral) |
|
||||
| CLI `check --select error,warning,style`, hw/ip: the `unused-import` increment | 142 ms | **5 ms** | P3 — one parse in the census, an AST gate sparing the nine files in ten that declare no package |
|
||||
| warm workspace start, settled | 1 330 ms | **~1 040–1 100 ms** | P4b — no empty default-scope scan (startup staged behind the configuration answer, 2 s bound), the store not rewritten when unchanged, opened at the first step that needs it, the corpus read a file at a time |
|
||||
| warm idle RSS | 570 MiB | **~423–480 MiB** | P4b |
|
||||
| first useful answer after opening a file, warm | 208 ms *or* 1.1 s (a race) | **~275 ms, correct, every session** | P4b — open buffers' folders at the head of the work list; a held opening request answered once that head is published |
|
||||
|
||||
**Filed, not fixed (TODO's loop-3 list):** the lint-result memo for the
|
||||
code-action path (24 ms per cursor move on the largest file); the
|
||||
target-scoped rename selector (P2d's census proved the 133 "unrelated"
|
||||
selected files are the container files a hierarchical tail folds through —
|
||||
no narrowing without a whole-scope oracle); the CLI's third parse; the
|
||||
first-answer gap to the old race's best case (the workspace walk in front
|
||||
of the open folder, 158 ms warm — `walk::collect_files` could hand on the
|
||||
metadata it already stat'd); the store's second open (reuse across rescans
|
||||
refused: it guards a mid-session cache-path change and a second session's
|
||||
compaction).
|
||||
|
||||
**Contracts amended, all recorded in `docs/topo.md`:** the parsed-input
|
||||
selectors and `vlog_parser::stats`; `FileFacts::analyzed` and the absorbed
|
||||
after-index; handshake 33 closed by an opt-in word-census rung (stronger
|
||||
than the transitive walk the row asked for); `package_exports_in`; the
|
||||
parsed `timing:` lines; the staged startup, the per-step read, the
|
||||
`staging`/`head_owed` wait clauses, the compaction skip; `state.rs` split
|
||||
into `state/`. Nothing in `check/`'s comparisons, `fence.rs`, or
|
||||
`verify.rs` changed.
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
**Recommendation: optimize code-action discovery first, then reuse rename/refactoring analysis, then remove CLI package-census duplication.** A newly measured no-offer comment cursor in a generated file blocks navigation for about **300 ms**. The earlier small-file measurements hid this size-dependent cost. Hierarchical rename still costs about **0.8 seconds**. Startup and resident memory remain secondary targets.
|
||||
|
||||
This document is a plan, not an implementation. The implementation agent should fill [the performance tracker](perf/take5-tracking.md). Raw results, exact commands/provenance and the read-only supplemental probes are preserved in [take5-baseline](perf/take5-baseline/README.md).
|
||||
**Status (2026-09-08): implemented as TODO §60 — P0, P1a–c, P2a–c (P2d measured, no narrowing: proof negative), handshake 33, P3, P4a–b; results in `docs/perf/README.md`'s 2026-09-08 entry and the tracker.** This document is the plan as the owner wrote it, kept unedited below; it was not an implementation when written. The implementation agent should fill [the performance tracker](perf/take5-tracking.md). Raw results, exact commands/provenance and the read-only supplemental probes are preserved in [take5-baseline](perf/take5-baseline/README.md).
|
||||
|
||||
## Scope and confidence
|
||||
|
||||
|
||||
Reference in new issue
Block a user