From b7a934080ab0c1c0d3a11d04deb551ac7e1f5c5a Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Fri, 28 Aug 2026 20:22:30 -0700 Subject: [PATCH] =?UTF-8?q?Release=200.14.0=20=E2=80=94=20the=20first-hove?= =?UTF-8?q?r=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- CHANGELOG.md | 38 +++++++++++++++++++++++++++++++++++++ Cargo.lock | 16 ++++++++-------- Cargo.toml | 2 +- editors/vscode/CHANGELOG.md | 14 ++++++++++++++ editors/vscode/README.md | 13 ++++++++++++- editors/vscode/package.json | 2 +- 6 files changed, 74 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2034f85..161395a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,44 @@ All notable changes to lucisv are recorded here. Versions follow [semantic versioning](https://semver.org/); until 1.0 the CLI's exit codes (see `README.md`) are the only frozen contract. +## 0.14.0 — 2026-08-28 + +The first-hover release: the owner's "hover is really slow on first +try," traced to three costs and each one removed. Hover's steady state +was already microseconds; now the firsts are too — or as close as +physics allows. + +### The index carries every declaration's line + +Each indexed declaration — modules, and ports/parameters through the +same member entries — now records its line number(s), computed at index +time for a `u32` per name (+68 KB over the 860-file corpus). A hover +heading into a closed file costs zero I/O: it survives the file being +deleted. The persisted facts format moved to 4; an older cache is +discarded whole and rebuilt once (~175 ms on the corpus). + +### Closed files are read once, not per hover + +The snippet's one remaining read is served from a small bounded view +cache (4 files / 8 MiB, newest kept, invalidated on every path that can +change a file's text): a repeat hover into a 12 MB closed file goes +5.8 ms → ~1 µs, and mean cross-file hover 40/157 µs → 4.7/12.9 µs. +A stale view can only ever omit a snippet — the wrong-line guard is +unchanged. + +### The startup scan answers requests as it goes + +A request sent right after `initialized` used to wait out the whole +scan: 780 ms cold / 287 ms warm over 200 files. The scan now feeds the +live index incrementally and drains the message queue between files — +the first hover of a session answers in ~15 ms against the index so +far, with the open file indexed first. One merge per drain (per-file +merging measured quadratic: 11.7 s over 800 files), scans under 64 +files stay one-shot, only the startup scan answers mid-way so the +request-order contract holds, and the finished index fingerprints +byte-identical to the old all-at-once scan. Scan totals unchanged +within noise. + ## 0.13.1 — 2026-08-28 The F12-latency release: the two costs behind a slow jump out of a big diff --git a/Cargo.lock b/Cargo.lock index d6f3784..c5352fd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.13.1" +version = "0.14.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.13.1" +version = "0.14.0" [[package]] name = "lucisv_server" -version = "0.13.1" +version = "0.14.0" dependencies = [ "lsp-server", "lsp-types", @@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.13.1" +version = "0.14.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.13.1" +version = "0.14.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -264,11 +264,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.13.1" +version = "0.14.0" [[package]] name = "vlog_refactor" -version = "0.13.1" +version = "0.14.0" dependencies = [ "vlog_parser", "vlog_semantic", @@ -276,7 +276,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.13.1" +version = "0.14.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index 01476d2..561f2cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ ] [workspace.package] -version = "0.13.1" +version = "0.14.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index 3838ca8..95e1d86 100644 --- a/editors/vscode/CHANGELOG.md +++ b/editors/vscode/CHANGELOG.md @@ -5,6 +5,20 @@ for you. The extension and its bundled language server share one version number; the full engineering notes live in the [project changelog](https://git.luci.ooo/lucio/lucisv/src/branch/master/CHANGELOG.md). +## 0.14.0 — 2026-08-28 + +The first-hover release. + +- **The first hover of a session answers in ~15 ms**, not hundreds — + the server now answers requests while the workspace scan is still + running, with your open file indexed first. +- **Repeat hovers into closed files are ~1 µs.** Declaration line + numbers live in the index (a few KB even for tens of thousands of + modules, ports included), and a closed file's text is read once and + cached, not re-read per hover. +- **One-time index rebuild** on first open after updating — the index + format gained the line numbers. + ## 0.13.1 — 2026-08-28 The F12-latency release. diff --git a/editors/vscode/README.md b/editors/vscode/README.md index 58b7698..e1bbcdc 100644 --- a/editors/vscode/README.md +++ b/editors/vscode/README.md @@ -30,7 +30,7 @@ Install **lucisv — Verilog/SystemVerilog** from the VS Code Extensions view, then open a Verilog or SystemVerilog file. There is no separate server or CLI setup. -The current release is **0.13.1**. Its platform packages include both +The current release is **0.14.0**. Its platform packages include both `lucisv-server` and the `lucisv` command-line tool: | Package target | Machines | @@ -320,6 +320,17 @@ Every nesting color is a proper VS Code theme color: } ``` +## Release 0.14.0 highlights + +Version 0.14.0 is the first-hover release: + +- Hover on instantiations and ports is now fast on the *first* try: the + server answers during the startup scan (~15 ms instead of waiting + hundreds), declaration lines live in the index, and closed files are + read once, then cached. +- The index cache format changed: the first open after updating + re-scans once, then persistent caching resumes. + ## Release 0.13.1 highlights Version 0.13.1 is the F12-latency release: diff --git a/editors/vscode/package.json b/editors/vscode/package.json index bc941d6..8e9a859 100644 --- a/editors/vscode/package.json +++ b/editors/vscode/package.json @@ -2,7 +2,7 @@ "name": "lucisv", "displayName": "lucisv — Verilog/SystemVerilog", "description": "Fast Verilog/SystemVerilog formatting, linting, navigation, refactoring, semantic highlighting and RTL design intelligence.", - "version": "0.13.1", + "version": "0.14.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",