From 17214ac8dbdc7ad1fbaa2d3b13a5f98de3a6fe37 Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Fri, 28 Aug 2026 16:31:47 -0700 Subject: [PATCH] =?UTF-8?q?Release=200.13.1=20=E2=80=94=20the=20F12-latenc?= =?UTF-8?q?y=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- CHANGELOG.md | 36 ++++++++++++++++++++++++++++++++++++ Cargo.lock | 16 ++++++++-------- Cargo.toml | 2 +- editors/vscode/CHANGELOG.md | 16 ++++++++++++++++ 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 9bb2352..2034f85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,42 @@ 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.13.1 — 2026-08-28 + +The F12-latency release: the two costs behind a slow jump out of a big +open file, found by measurement and removed, plus a stack-safety hole +closed. + +### References stop sweeping the open buffer + +The open-document overlay in find-references did index lookups for +every reference in every open buffer. A spelled-name prefilter and a +hoisted file lookup take a 70 000-reference open `top.sv` from 3.2 ms +to **0.11 ms** per request, both directions; in-file references and +occurrence highlighting on a heavily used signal drop ~40 %. Answers +are byte-identical — the old refactor walk remains the tested oracle. + +### A rescan reuses what open buffers already analyzed + +Jumping into a folder the index scope had not reached triggered a +rescan that re-parsed every open buffer's text twice — once for index +facts, once for completion words. Both now come from the analysis the +buffer already holds (one implementation per path, byte-identical facts +pinned over the corpus): the folder-widening jump drops from **228 ms +to 23 ms**, and didSave's incremental update rides the same reuse. + +### The stack now fits the nesting limit by construction + +The parser's 64-level nesting limit only turns over-deep input into an +error on a stack big enough to reach level 64 — an assumption that had +drifted out from under the 2026-08 measurement (~94 KiB per level in +debug under rustc 1.97; a default 2 MiB thread aborted near level 30). +`PARSE_STACK_SIZE` (16 MiB) is now applied at every parse-reaching +thread, both binaries' work included — the CLI previously aborted under +a 1 MiB main stack (`ulimit`, win32 default) on 500 nested `begin`s and +now emits an ordinary diagnostic. Deep-nesting suites across four +crates pin it, sabotage-verified. + ## 0.13.0 — 2026-08-28 Editor responsiveness, and hover for old-style ports. diff --git a/Cargo.lock b/Cargo.lock index 929a261..d6f3784 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.13.0" +version = "0.13.1" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.13.0" +version = "0.13.1" [[package]] name = "lucisv_server" -version = "0.13.0" +version = "0.13.1" dependencies = [ "lsp-server", "lsp-types", @@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.13.0" +version = "0.13.1" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.13.0" +version = "0.13.1" dependencies = [ "vlog_formatter", "vlog_parser", @@ -264,11 +264,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.13.0" +version = "0.13.1" [[package]] name = "vlog_refactor" -version = "0.13.0" +version = "0.13.1" dependencies = [ "vlog_parser", "vlog_semantic", @@ -276,7 +276,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.13.0" +version = "0.13.1" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index 776b158..01476d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ ] [workspace.package] -version = "0.13.0" +version = "0.13.1" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index 3e95abc..3838ca8 100644 --- a/editors/vscode/CHANGELOG.md +++ b/editors/vscode/CHANGELOG.md @@ -5,6 +5,22 @@ 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.13.1 — 2026-08-28 + +The F12-latency release. + +- **Find References with a huge file open is ~30× faster** (3.2 ms → + 0.11 ms on a 70 000-reference buffer), and in-file references and + occurrence highlighting on heavily used signals are ~40 % faster. +- **Jumping into a new folder is ~10× faster.** The index rescan that a + scope-widening jump triggers now reuses what your open buffers already + analyzed instead of re-parsing them: ~228 ms → ~23 ms with a 1.4 MB + file open. +- **Pathologically nested files can no longer crash the tools.** ~500 + nested `begin`/`end` (or `case`, `fork`, generate…) blocks now produce + an ordinary "nesting too deep" diagnostic on every platform, including + Windows, instead of risking an abort. + ## 0.13.0 — 2026-08-28 - **Typing no longer reanalyzes on every keystroke.** The buffer's analysis is diff --git a/editors/vscode/README.md b/editors/vscode/README.md index c9d6f9a..58b7698 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.0**. Its platform packages include both +The current release is **0.13.1**. 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.13.1 highlights + +Version 0.13.1 is the F12-latency release: + +- Find References with a big file open answers in ~0.1 ms where it took + milliseconds, and jumping into a not-yet-indexed folder costs ~23 ms + where it took ~228 ms — the rescan reuses what open buffers already + analyzed. +- Deeply nested files produce a "nesting too deep" diagnostic instead of + ever crashing the server or CLI, on every platform. + ## Release 0.13.0 highlights Version 0.13.0 is the responsiveness release. Typing no longer reanalyzes the diff --git a/editors/vscode/package.json b/editors/vscode/package.json index 9f95b36..bc941d6 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.0", + "version": "0.13.1", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",