From 01843eb75a8fa66b4a64291a18a72ae3af5beff6 Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Wed, 9 Sep 2026 00:41:34 -0500 Subject: [PATCH] =?UTF-8?q?Review=20round=20closed=20(=C2=A761.6):=20perf?= =?UTF-8?q?=20README=20entry=20for=20the=20five=20lanes,=20the=20review's?= =?UTF-8?q?=20and=20the=20tracker's=20status=20lines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/perf/README.md | 34 ++++++++++++++++++++++++++++++++ docs/performance_take5_review.md | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/docs/perf/README.md b/docs/perf/README.md index 2de39fe..8db21e8 100644 --- a/docs/perf/README.md +++ b/docs/perf/README.md @@ -1284,3 +1284,37 @@ 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. + +### 2026-09-08 — the review round (TODO §61) + +The independent review of 0.51.0 (`docs/performance_take5_review.md`, +tracker rows R1–R4) implemented in five lanes, same protocol as §60, each +paired against the 0.51.0 review baseline or the commit it started from. +Feature READMEs: `docs/features/perf5r-{preflight,lint-snapshot,first-answer,publication,scope-reuse}/`. + +| what | before | after | lane | +|---|---:|---:|---| +| `rename` on a cursor with no symbol (a refusal) | 2.0 s, 3 975 parses | **0.34 ms, 0 parses** | §61.1 — an engine-owned preflight over the request buffer alone; index-answered refusals stay on the slow road (a wrong rename refusal is terminal) | +| `codeAction` on the 42k-line no-offer comment, unchanged buffer | 22.6 ms (all of it the three semantic rules) | **1.0 ms** | §61.2 — one lint pass per document revision shared by diagnostics and quick fixes, keyed by value on every input (waiver *contents* included), cleared by every index mutation's overlay refresh | +| the definition queued behind it | 22.4 ms | **0.8 ms** | §61.2 | +| first `codeAction` after a one-character edit | 126 ms | **107 ms** (the rest is the buffer's own parse) | §61.2 | +| first useful definition after opening a file, workspace scope | 266 ms cold / 301 warm (0.51.0); 84 / 208 in 0.50.0 *when a race was won*, over 1 s otherwise | **78 cold / 115 warm, correct every session** | §61.3 — the open buffer's folders walked, stepped and published before the rest of the workspace is discovered; the walk hands on the lengths it already has; a subtree walk carries the ancestor ignore stack down | +| warm quiet workspace start | 1 034 ms | **985–997 ms** | §61.3/§61.4 | +| a loaded warm scan (a definition every 100 ms), median wait / scan time | 112 ms / 4.2 s | **1.9 ms / ~1.9 s** at the same offered load | §61.4 — a publish per 512 files instead of per burst (a publish costs the size of the index); the first useful answer exempt | +| an empty navigation answer mid-scan | answered `[]` if the target was not scanned yet | **deferred to the publish that holds it, or scan end**; unsettled answers 0 | §61.4 | +| the tail rename (`state_q`, 238 selected files) | 380 ms, 240 parses | **314 ms, 137 parses** (−21 % against the review's 398) | §61.5 — a rename builds its index from the store's own records for closed files whose bytes hash to what the record was written for, and parses only the files it must analyse; the record and its hash come from one store entry, never the workspace index | +| the duplicate-module rename refusal (`rstmgr_por`, 3 976 files) | 2.05 s, 3 975 parses | **0.7 s, 14 parses** | §61.5 | + +**Trades and rulings recorded:** the loaded-scan max in four single-buffer +cells rose (worst 168 → 422 ms warm) — cadence spacing, accepted against +the median and the completion; the duplicate-declaration rename refusal +stays on the slow road (the index is written on save, not on a keystroke); +the bounded local record load of the index store stays unshipped (the +checksum is owed either way, and it would break the canonical load the +compaction skip rests on); a config-discovery memo refused (0.04 ms, and +the only thing noticing an unwatched `lucisv.toml` change). + +**Filed, not fixed:** the cross-folder first answer's remaining 89 ms is +the store open; the two-phase discovery walks the open folder twice (+2.5– +5 % on the 1/10-buffer settle); `format::indent_width` over an already-read +`FileConfig`; the `absorb` whole-index merge as the next publication lever. diff --git a/docs/performance_take5_review.md b/docs/performance_take5_review.md index 12b91c3..f7b1e73 100644 --- a/docs/performance_take5_review.md +++ b/docs/performance_take5_review.md @@ -2,7 +2,7 @@ Reviewed 2026-09-08 at **0.51.0, `126a6bcdac99e940534c87bce94a5269cdc53ae4`** against release 0.50.0. The implementation delivers the major menu, rename, CLI and warm-memory improvements. Retain those changes. The original performance targets are only partly met: large-file lint work, startup's first useful answer, and broad refactor analysis remain material costs. -This is a measurement and planning review. No production code was changed. The [completed implementation ledger](perf/take5-tracking.md) remains intact; its new independent-review section tracks follow-up experiments. [Raw evidence and reproduction instructions](perf/take5-review-20260908/README.md) accompany this report. The original rationale is in [the take 5 plan](performance_take5.md). +**Status (2026-09-09): implemented as TODO §61 — R3a (§61.1), R1a/R1b (§61.2), R2a/R2b (§61.3), R4 (§61.4), R3b/R3c (§61.5); results in `docs/perf/README.md`'s 2026-09-08 review-round entry and the tracker's follow-up queue.** This is a measurement and planning review as written; no production code was changed by it. The [completed implementation ledger](perf/take5-tracking.md) remains intact; its new independent-review section tracks follow-up experiments. [Raw evidence and reproduction instructions](perf/take5-review-20260908/README.md) accompany this report. The original rationale is in [the take 5 plan](performance_take5.md). ## Measurement basis