docs: performance take 5 — the owner's analysis, implementation plan, tracker and baseline evidence at 0.50.0 (bbdbfe9)

This commit is contained in:
lucio committed 2026-09-07 13:44:00 -05:00
1 parent bbdbfe9045
commit be084f07b5
8 files changed
+613

No files matched your search

+89
View File
@@ -0,0 +1,89 @@
# Take 5 baseline evidence — 0.50.0, bbdbfe9
Read [the analysis and plan](../../performance_take5.md) and [implementation tracker](../take5-tracking.md). These are measured inputs to future implementation; no optimization is included.
| File | Meaning |
|---|---|
| `metadata.json` | Commits, binary and modified corpus hashes, environment, limitations |
| `results.jsonl` | Standard LSP rows; ordinary `ms` arrays are first + repeats except scan/didOpen and RSS |
| `runs.jsonl` | Standard-phase commands, before/after load, exit status and corpus checks |
| `offer-breakdown.jsonl` | Filtered action requests/counts; `offer-queue.ms` is leader/follower milliseconds |
| `cli-results.jsonl` | Paired CLI times, commands, exit status, summaries, stdout hashes, peak RSS bytes |
The original `rss` rows use `ms` for **KiB of idle RSS**, and `n` for **KiB of allocated store size**. Do not treat them as latency or peak memory. CLI formatter exit 2 reflects four existing failures; lint exit 1 reflects findings. Tiny extract/inline `resolve` rows are invalid measures of command execution and excluded from conclusions.
Standard phases ran sequentially under `tools/guard.sh -m 8 -t 1800`, using commands in `runs.jsonl`. Baseline cache warm-up preceded code-action sessions. `scan` resets cold caches; its initial default-scope scan can populate entries before the final workspace scan. No Cargo command ran during retained timing sessions. Source was not modified. CLI raw logs remain in `/tmp/lucisv-perf5-20260907`; summaries and stdout hashes survive here.
## Reproduce
Run a guarded release build first. After all builds stop, run the phase command in `runs.jsonl`, replacing its output, label and storage with a new scratch run. Reference and candidate need separate, identically primed caches. Record exact binary/source/corpus hashes. Check corpus status and hashes before/after each phase.
## Supplemental read-only probes
These scripts ran from scratch, not as changes to the production harness. Save each block to a scratch `.py` file and update the explicit paths, labels and output names. Run the offer probe under `tools/guard.sh -m 8 -t 1800`; the CLI probe guards each child internally. Do not run either concurrently with another benchmark or a build. Returned edits are discarded.
### Action-family attribution
```python
import sys, argparse, copy, json, os
sys.path.insert(0,'/Users/guoliangchen/repo/verilogrustformatter/tools/perf')
import harness as h, sites
h.configure(argparse.Namespace(server='/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server',label='0.50.0-bbdbfe9',opentitan='/Users/guoliangchen/repo/opentitan',storage='/tmp/lucisv-perf5-20260907/caches',out='/tmp/lucisv-perf5-20260907/offer-breakdown.jsonl',tries=3))
shapes=[('tb-comment',sites.TB,'// ',2),('aes-reg-instance',sites.AES,'aes_reg_top u_reg (',0),('aes-core-comment',sites.AES_CORE,'// ',2),('spi-comment',sites.SPI_DEVICE,'// ',2),('pinmux-comment',sites.PINMUX_REG_TOP,'// ',2)]
for label,relative,needle,offset in shapes:
with h.session('workspace') as s:
h.settled(s)
s.did_open(sites.path(relative)); s.wait_quiet(.6); s.take_notifications()
p=h.code_action_params(relative,needle,offset=offset)
for kind in [None,[],['quickfix'],['refactor.extract'],['refactor.inline'],['refactor.rewrite.lucisv.ports'],['source.organizeImports']]:
params=copy.deepcopy(p)
if kind is not None: params['context']['only']=kind
elapsed=[]; answer=None
for i in range(4):
ms,answer=s.request('textDocument/codeAction',params)
if 'error' in answer: raise RuntimeError(answer)
elapsed.append(ms)
h.record(phase='offer-breakdown',row=label+' '+str(kind),ms=elapsed,n=len(answer.get('result') or []),file=relative,position=p['range']['start'],load=os.getloadavg())
if label=='pinmux-comment':
for i in range(3):
leader=s.send('textDocument/codeAction',p)
follower=s.send('textDocument/definition',h.at(sites.TB,' aes #(',offset=2))
lm,lr=s.await_id(leader); fm,fr=s.await_id(follower)
h.record(phase='offer-queue',row='pinmux comment -> aes definition',ms=[lm,fm],note='leader/follower ms, not repeats')
```
### Paired CLI and independently cold formatting
```python
import subprocess, pathlib, os, time, json, re, shutil, hashlib
root=pathlib.Path('/Users/guoliangchen/repo/verilogrustformatter')
out=pathlib.Path('/tmp/lucisv-perf5-20260907'); corpus='/Users/guoliangchen/repo/opentitan'
tree=corpus+'/hw/ip'
binaries={'0.50.0':str(root/'target/release/lucisv'),'0.49.0':'/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.49.0','0.43.0':'/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.43.0'}
initial=subprocess.check_output(['git','-C',corpus,'status','--porcelain'],text=True)
def run(label,kind,trial,args):
cmd=[str(root/'tools/guard.sh'),'-m','8','-t','1800','--','/usr/bin/time','-l',binaries[label]]+args+[tree]
load=os.getloadavg()
r=subprocess.run(cmd,cwd=root,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
log=r.stdout+r.stderr
(out/f'cli-{label}-{kind}-{trial}.log').write_bytes(log)
err=r.stderr.decode(errors='replace')
timing=re.search(r'([\d.]+) real\s+([\d.]+) user\s+([\d.]+) sys',err)
rss=re.search(r'(\d+)\s+maximum resident set size',err)
summary=[x for x in log.decode(errors='replace').splitlines() if re.search(r'files? (checked|already|would|from)|violations? in|failed to format|files?,',x)]
record=dict(label=label,row=kind,trial=trial,command=cmd,exit=r.returncode,wall_s=float(timing[1]) if timing else None,user_s=float(timing[2]) if timing else None,sys_s=float(timing[3]) if timing else None,peak_rss_bytes=int(rss[1]) if rss else None,summary=summary[-4:],stdout_sha256=hashlib.sha256(r.stdout).hexdigest(),load_before=load,load_after=os.getloadavg(),corpus_unchanged=initial==subprocess.check_output(['git','-C',corpus,'status','--porcelain'],text=True))
with (out/'cli-results.jsonl').open('a') as f:f.write(json.dumps(record)+'\n')
print(label,kind,trial,record['wall_s'],record['summary'],flush=True)
if r.returncode not in (0,1,2) or not record['corpus_unchanged'] or not timing: raise RuntimeError(record)
for trial in range(1,4):
for label in (list(binaries) if trial%2 else list(reversed(binaries))):
for kind,args in [('default',['check']),('style',['check','--select','error,warning,style']),('style-no-unused-import',['check','--select','error,warning,style','--ignore','unused-import'])]:
if label=='0.43.0' and kind=='style-no-unused-import':continue
run(label,kind,trial,args)
cache=out/'cli-format-cache'
shutil.rmtree(cache,ignore_errors=True)
for warmth in ['cold','warm']:
run('0.50.0','format-'+warmth,trial,['format','--check','--cache-dir',str(cache)])
```
The CLI probe's summary matcher missed `found N violations`; these summary fields were filled from the saved raw logs afterward. Timings, exit codes, hashes and memory figures are unmodified.
@@ -0,0 +1,30 @@
{"label": "0.50.0", "row": "default", "trial": 1, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv", "check", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.59, "user_s": 2.29, "sys_s": 0.27, "peak_rss_bytes": 196067328, "summary": ["found 445 violations"], "stdout_sha256": "c2444712e23ea59224972b977a2ad55cae0ad7520ecd71923e13e5d1d28c74a5", "load_before": [4.71826171875, 3.9404296875, 3.4326171875], "load_after": [4.71826171875, 3.9404296875, 3.4326171875], "corpus_unchanged": true}
{"label": "0.50.0", "row": "style", "trial": 1, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv", "check", "--select", "error,warning,style", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.58, "user_s": 3.59, "sys_s": 0.26, "peak_rss_bytes": 218562560, "summary": ["found 7751 violations"], "stdout_sha256": "97201de03bca32fab4761b49902c0bef48fd159c3f4baca625f37446061a1155", "load_before": [4.71826171875, 3.9404296875, 3.4326171875], "load_after": [4.71826171875, 3.9404296875, 3.4326171875], "corpus_unchanged": true}
{"label": "0.50.0", "row": "style-no-unused-import", "trial": 1, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv", "check", "--select", "error,warning,style", "--ignore", "unused-import", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.44, "user_s": 2.38, "sys_s": 0.24, "peak_rss_bytes": 181452800, "summary": ["found 7734 violations"], "stdout_sha256": "58780c3e81b897b4104cecd17ca72c69b45a1a14375396d9c21b6fcea3b7bb3f", "load_before": [4.71826171875, 3.9404296875, 3.4326171875], "load_after": [4.34033203125, 3.875, 3.412109375], "corpus_unchanged": true}
{"label": "0.49.0", "row": "default", "trial": 1, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.49.0", "check", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.39, "user_s": 2.32, "sys_s": 0.24, "peak_rss_bytes": 169066496, "summary": ["found 445 violations"], "stdout_sha256": "c2444712e23ea59224972b977a2ad55cae0ad7520ecd71923e13e5d1d28c74a5", "load_before": [4.34033203125, 3.875, 3.412109375], "load_after": [4.34033203125, 3.875, 3.412109375], "corpus_unchanged": true}
{"label": "0.49.0", "row": "style", "trial": 1, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.49.0", "check", "--select", "error,warning,style", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.57, "user_s": 3.53, "sys_s": 0.28, "peak_rss_bytes": 235339776, "summary": ["found 7751 violations"], "stdout_sha256": "97201de03bca32fab4761b49902c0bef48fd159c3f4baca625f37446061a1155", "load_before": [4.34033203125, 3.875, 3.412109375], "load_after": [4.34033203125, 3.875, 3.412109375], "corpus_unchanged": true}
{"label": "0.49.0", "row": "style-no-unused-import", "trial": 1, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.49.0", "check", "--select", "error,warning,style", "--ignore", "unused-import", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.45, "user_s": 2.46, "sys_s": 0.24, "peak_rss_bytes": 194560000, "summary": ["found 7734 violations"], "stdout_sha256": "58780c3e81b897b4104cecd17ca72c69b45a1a14375396d9c21b6fcea3b7bb3f", "load_before": [4.34033203125, 3.875, 3.412109375], "load_after": [4.34033203125, 3.875, 3.412109375], "corpus_unchanged": true}
{"label": "0.43.0", "row": "default", "trial": 1, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.43.0", "check", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.42, "user_s": 2.36, "sys_s": 0.24, "peak_rss_bytes": 176521216, "summary": ["found 445 violations"], "stdout_sha256": "c2444712e23ea59224972b977a2ad55cae0ad7520ecd71923e13e5d1d28c74a5", "load_before": [4.34033203125, 3.875, 3.412109375], "load_after": [4.15283203125, 3.84375, 3.40380859375], "corpus_unchanged": true}
{"label": "0.43.0", "row": "style", "trial": 1, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.43.0", "check", "--select", "error,warning,style", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.46, "user_s": 2.55, "sys_s": 0.25, "peak_rss_bytes": 194232320, "summary": ["found 7734 violations"], "stdout_sha256": "58780c3e81b897b4104cecd17ca72c69b45a1a14375396d9c21b6fcea3b7bb3f", "load_before": [4.15283203125, 3.84375, 3.40380859375], "load_after": [4.15283203125, 3.84375, 3.40380859375], "corpus_unchanged": true}
{"label": "0.50.0", "row": "format-cold", "trial": 1, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv", "format", "--check", "--cache-dir", "/tmp/lucisv-perf5-20260907/cli-format-cache", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 2, "wall_s": 0.67, "user_s": 3.87, "sys_s": 0.19, "peak_rss_bytes": 212008960, "summary": ["1772 files would be reformatted, 30 files left unchanged, 4 files failed to format"], "stdout_sha256": "fdae6259fca3340f190d63b1625a968d7186a76653d2a5d7f8c25ca489e9d878", "load_before": [4.15283203125, 3.84375, 3.40380859375], "load_after": [4.15283203125, 3.84375, 3.40380859375], "corpus_unchanged": true}
{"label": "0.50.0", "row": "format-warm", "trial": 1, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv", "format", "--check", "--cache-dir", "/tmp/lucisv-perf5-20260907/cli-format-cache", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 2, "wall_s": 0.69, "user_s": 3.96, "sys_s": 0.2, "peak_rss_bytes": 210747392, "summary": ["1772 files would be reformatted, 30 files left unchanged, 30 files from cache, 4 files failed to format"], "stdout_sha256": "fdae6259fca3340f190d63b1625a968d7186a76653d2a5d7f8c25ca489e9d878", "load_before": [4.15283203125, 3.84375, 3.40380859375], "load_after": [4.15283203125, 3.84375, 3.40380859375], "corpus_unchanged": true}
{"label": "0.43.0", "row": "default", "trial": 2, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.43.0", "check", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.4, "user_s": 2.4, "sys_s": 0.24, "peak_rss_bytes": 172195840, "summary": ["found 445 violations"], "stdout_sha256": "c2444712e23ea59224972b977a2ad55cae0ad7520ecd71923e13e5d1d28c74a5", "load_before": [4.15283203125, 3.84375, 3.40380859375], "load_after": [4.22021484375, 3.86279296875, 3.4130859375], "corpus_unchanged": true}
{"label": "0.43.0", "row": "style", "trial": 2, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.43.0", "check", "--select", "error,warning,style", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.46, "user_s": 2.51, "sys_s": 0.24, "peak_rss_bytes": 185712640, "summary": ["found 7734 violations"], "stdout_sha256": "58780c3e81b897b4104cecd17ca72c69b45a1a14375396d9c21b6fcea3b7bb3f", "load_before": [4.22021484375, 3.86279296875, 3.4130859375], "load_after": [4.22021484375, 3.86279296875, 3.4130859375], "corpus_unchanged": true}
{"label": "0.49.0", "row": "default", "trial": 2, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.49.0", "check", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.38, "user_s": 2.27, "sys_s": 0.24, "peak_rss_bytes": 177340416, "summary": ["found 445 violations"], "stdout_sha256": "c2444712e23ea59224972b977a2ad55cae0ad7520ecd71923e13e5d1d28c74a5", "load_before": [4.22021484375, 3.86279296875, 3.4130859375], "load_after": [4.22021484375, 3.86279296875, 3.4130859375], "corpus_unchanged": true}
{"label": "0.49.0", "row": "style", "trial": 2, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.49.0", "check", "--select", "error,warning,style", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.58, "user_s": 3.57, "sys_s": 0.26, "peak_rss_bytes": 202326016, "summary": ["found 7751 violations"], "stdout_sha256": "97201de03bca32fab4761b49902c0bef48fd159c3f4baca625f37446061a1155", "load_before": [4.22021484375, 3.86279296875, 3.4130859375], "load_after": [4.22021484375, 3.86279296875, 3.4130859375], "corpus_unchanged": true}
{"label": "0.49.0", "row": "style-no-unused-import", "trial": 2, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.49.0", "check", "--select", "error,warning,style", "--ignore", "unused-import", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.45, "user_s": 2.42, "sys_s": 0.24, "peak_rss_bytes": 183205888, "summary": ["found 7734 violations"], "stdout_sha256": "58780c3e81b897b4104cecd17ca72c69b45a1a14375396d9c21b6fcea3b7bb3f", "load_before": [4.22021484375, 3.86279296875, 3.4130859375], "load_after": [4.1220703125, 3.84814453125, 3.41064453125], "corpus_unchanged": true}
{"label": "0.50.0", "row": "default", "trial": 2, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv", "check", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.4, "user_s": 2.29, "sys_s": 0.23, "peak_rss_bytes": 161054720, "summary": ["found 445 violations"], "stdout_sha256": "c2444712e23ea59224972b977a2ad55cae0ad7520ecd71923e13e5d1d28c74a5", "load_before": [4.1220703125, 3.84814453125, 3.41064453125], "load_after": [4.1220703125, 3.84814453125, 3.41064453125], "corpus_unchanged": true}
{"label": "0.50.0", "row": "style", "trial": 2, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv", "check", "--select", "error,warning,style", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.58, "user_s": 3.56, "sys_s": 0.27, "peak_rss_bytes": 210288640, "summary": ["found 7751 violations"], "stdout_sha256": "97201de03bca32fab4761b49902c0bef48fd159c3f4baca625f37446061a1155", "load_before": [4.1220703125, 3.84814453125, 3.41064453125], "load_after": [4.1220703125, 3.84814453125, 3.41064453125], "corpus_unchanged": true}
{"label": "0.50.0", "row": "style-no-unused-import", "trial": 2, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv", "check", "--select", "error,warning,style", "--ignore", "unused-import", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.47, "user_s": 2.45, "sys_s": 0.24, "peak_rss_bytes": 181174272, "summary": ["found 7734 violations"], "stdout_sha256": "58780c3e81b897b4104cecd17ca72c69b45a1a14375396d9c21b6fcea3b7bb3f", "load_before": [4.1220703125, 3.84814453125, 3.41064453125], "load_after": [4.1220703125, 3.84814453125, 3.41064453125], "corpus_unchanged": true}
{"label": "0.50.0", "row": "format-cold", "trial": 2, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv", "format", "--check", "--cache-dir", "/tmp/lucisv-perf5-20260907/cli-format-cache", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 2, "wall_s": 0.59, "user_s": 4.0, "sys_s": 0.23, "peak_rss_bytes": 207667200, "summary": ["1772 files would be reformatted, 30 files left unchanged, 4 files failed to format"], "stdout_sha256": "fdae6259fca3340f190d63b1625a968d7186a76653d2a5d7f8c25ca489e9d878", "load_before": [4.1220703125, 3.84814453125, 3.41064453125], "load_after": [4.11181640625, 3.8505859375, 3.4140625], "corpus_unchanged": true}
{"label": "0.50.0", "row": "format-warm", "trial": 2, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv", "format", "--check", "--cache-dir", "/tmp/lucisv-perf5-20260907/cli-format-cache", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 2, "wall_s": 0.63, "user_s": 3.86, "sys_s": 0.2, "peak_rss_bytes": 216088576, "summary": ["1772 files would be reformatted, 30 files left unchanged, 30 files from cache, 4 files failed to format"], "stdout_sha256": "fdae6259fca3340f190d63b1625a968d7186a76653d2a5d7f8c25ca489e9d878", "load_before": [4.11181640625, 3.8505859375, 3.4140625], "load_after": [4.11181640625, 3.8505859375, 3.4140625], "corpus_unchanged": true}
{"label": "0.50.0", "row": "default", "trial": 3, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv", "check", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.4, "user_s": 2.32, "sys_s": 0.25, "peak_rss_bytes": 167739392, "summary": ["found 445 violations"], "stdout_sha256": "c2444712e23ea59224972b977a2ad55cae0ad7520ecd71923e13e5d1d28c74a5", "load_before": [4.11181640625, 3.8505859375, 3.4140625], "load_after": [4.11181640625, 3.8505859375, 3.4140625], "corpus_unchanged": true}
{"label": "0.50.0", "row": "style", "trial": 3, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv", "check", "--select", "error,warning,style", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.56, "user_s": 3.52, "sys_s": 0.27, "peak_rss_bytes": 204865536, "summary": ["found 7751 violations"], "stdout_sha256": "97201de03bca32fab4761b49902c0bef48fd159c3f4baca625f37446061a1155", "load_before": [4.11181640625, 3.8505859375, 3.4140625], "load_after": [4.11181640625, 3.8505859375, 3.4140625], "corpus_unchanged": true}
{"label": "0.50.0", "row": "style-no-unused-import", "trial": 3, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv", "check", "--select", "error,warning,style", "--ignore", "unused-import", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.44, "user_s": 2.39, "sys_s": 0.24, "peak_rss_bytes": 186073088, "summary": ["found 7734 violations"], "stdout_sha256": "58780c3e81b897b4104cecd17ca72c69b45a1a14375396d9c21b6fcea3b7bb3f", "load_before": [4.11181640625, 3.8505859375, 3.4140625], "load_after": [4.3427734375, 3.90283203125, 3.43505859375], "corpus_unchanged": true}
{"label": "0.49.0", "row": "default", "trial": 3, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.49.0", "check", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.38, "user_s": 2.28, "sys_s": 0.24, "peak_rss_bytes": 175341568, "summary": ["found 445 violations"], "stdout_sha256": "c2444712e23ea59224972b977a2ad55cae0ad7520ecd71923e13e5d1d28c74a5", "load_before": [4.3427734375, 3.90283203125, 3.43505859375], "load_after": [4.3427734375, 3.90283203125, 3.43505859375], "corpus_unchanged": true}
{"label": "0.49.0", "row": "style", "trial": 3, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.49.0", "check", "--select", "error,warning,style", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.59, "user_s": 3.48, "sys_s": 0.27, "peak_rss_bytes": 210550784, "summary": ["found 7751 violations"], "stdout_sha256": "97201de03bca32fab4761b49902c0bef48fd159c3f4baca625f37446061a1155", "load_before": [4.3427734375, 3.90283203125, 3.43505859375], "load_after": [4.3427734375, 3.90283203125, 3.43505859375], "corpus_unchanged": true}
{"label": "0.49.0", "row": "style-no-unused-import", "trial": 3, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.49.0", "check", "--select", "error,warning,style", "--ignore", "unused-import", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.48, "user_s": 2.46, "sys_s": 0.24, "peak_rss_bytes": 190054400, "summary": ["found 7734 violations"], "stdout_sha256": "58780c3e81b897b4104cecd17ca72c69b45a1a14375396d9c21b6fcea3b7bb3f", "load_before": [4.3427734375, 3.90283203125, 3.43505859375], "load_after": [4.3427734375, 3.90283203125, 3.43505859375], "corpus_unchanged": true}
{"label": "0.43.0", "row": "default", "trial": 3, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.43.0", "check", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.39, "user_s": 2.34, "sys_s": 0.24, "peak_rss_bytes": 176586752, "summary": ["found 445 violations"], "stdout_sha256": "c2444712e23ea59224972b977a2ad55cae0ad7520ecd71923e13e5d1d28c74a5", "load_before": [4.3427734375, 3.90283203125, 3.43505859375], "load_after": [4.3427734375, 3.90283203125, 3.43505859375], "corpus_unchanged": true}
{"label": "0.43.0", "row": "style", "trial": 3, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.43.0", "check", "--select", "error,warning,style", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 1, "wall_s": 0.45, "user_s": 2.48, "sys_s": 0.24, "peak_rss_bytes": 182517760, "summary": ["found 7734 violations"], "stdout_sha256": "58780c3e81b897b4104cecd17ca72c69b45a1a14375396d9c21b6fcea3b7bb3f", "load_before": [4.15478515625, 3.87109375, 3.42626953125], "load_after": [4.15478515625, 3.87109375, 3.42626953125], "corpus_unchanged": true}
{"label": "0.50.0", "row": "format-cold", "trial": 3, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv", "format", "--check", "--cache-dir", "/tmp/lucisv-perf5-20260907/cli-format-cache", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 2, "wall_s": 0.68, "user_s": 3.98, "sys_s": 0.22, "peak_rss_bytes": 173998080, "summary": ["1772 files would be reformatted, 30 files left unchanged, 4 files failed to format"], "stdout_sha256": "fdae6259fca3340f190d63b1625a968d7186a76653d2a5d7f8c25ca489e9d878", "load_before": [4.15478515625, 3.87109375, 3.42626953125], "load_after": [4.15478515625, 3.87109375, 3.42626953125], "corpus_unchanged": true}
{"label": "0.50.0", "row": "format-warm", "trial": 3, "command": ["/Users/guoliangchen/repo/verilogrustformatter/tools/guard.sh", "-m", "8", "-t", "1800", "--", "/usr/bin/time", "-l", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv", "format", "--check", "--cache-dir", "/tmp/lucisv-perf5-20260907/cli-format-cache", "/Users/guoliangchen/repo/opentitan/hw/ip"], "exit": 2, "wall_s": 0.61, "user_s": 4.01, "sys_s": 0.2, "peak_rss_bytes": 219955200, "summary": ["1772 files would be reformatted, 30 files left unchanged, 30 files from cache, 4 files failed to format"], "stdout_sha256": "fdae6259fca3340f190d63b1625a968d7186a76653d2a5d7f8c25ca489e9d878", "load_before": [4.15478515625, 3.87109375, 3.42626953125], "load_after": [4.15478515625, 3.87109375, 3.42626953125], "corpus_unchanged": true}
+36
View File
@@ -0,0 +1,36 @@
{
"date": "2026-09-07",
"timezone": "America/Chicago",
"head": "bbdbfe9045e8a85f8ea471529ea739af6cade77f",
"scope": "Latest local HEAD; remote was not fetched or changed",
"version": "0.50.0",
"host": "Darwin Lu-MacbookPro16-90803.local 27.0.0 Darwin Kernel Version 27.0.0: Tue Aug 11 22:18:52 PDT 2026; root:xnu-13432.1.9~3/RELEASE_ARM64_T6000 arm64",
"os": "ProductName:\t\tmacOS\nProductVersion:\t\t27.0\nBuildVersion:\t\t26A5425a",
"python": "3.14.7",
"rust": "rustc 1.97.1 (8bab26f4f 2026-07-14) (Homebrew)",
"cpu": "Apple M1 Max, 10 cores, 64 GB per prior machine record; same Darwin T6000 host",
"corpus": "/Users/guoliangchen/repo/opentitan",
"corpus_head": "00981352642fb65ef2b6c47143a0f6bb31fd4a97",
"corpus_status": "M hw/ip/aes/dv/tb/tb.sv\n M hw/top_darjeeling/ip/ast/rtl/ast.sv\n M hw/top_earlgrey/ip/ast/rtl/ast.sv",
"corpus_modified_sha256": {
"hw/ip/aes/dv/tb/tb.sv": "09ae059220caa7667bb22acdd3157647b55d36de96ff2ca55a801bbbcd08146e",
"hw/top_darjeeling/ip/ast/rtl/ast.sv": "2b63f9d7bc0068388e47a80383eaf048183cf5868b1cfd4692eac325393d2803",
"hw/top_earlgrey/ip/ast/rtl/ast.sv": "15efd90c99030c6a43486ef1ed622897b967ad5153697d6b2c2c21cfb6eba35f"
},
"binaries": {
"/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv": "894054128495b764bb966e7b923e08267e57aea83fdc611fad4b4ed7a66b51e3",
"/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server": "27e0a0df5b77102ec79c23279da64e722bffd440c604ad6d03ff66c2f6398ad3",
"/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.49.0": "0c943c4ccce484b9e5860726cdc46e584b4050d527f9845d20a87ea5eabd679c",
"/Users/guoliangchen/.cache/lucisv-baselines/lucisv-0.43.0": "89379a12b2ac9bfe32e58b7555f7b75910f8c375e79f8b6b6322a1082842cb81"
},
"build": "cargo build --release --locked -p lucisv -p lucisv_server: optimized artifacts up to date, completed in 0.04 s before timed runs",
"guard": "8 GiB / 1800 seconds. Initial sandbox attempt could not inspect ps; discarded and rerun outside sandbox with functioning guard. No guard kill in retained measurements.",
"scratch": "/tmp/lucisv-perf5-20260907",
"limitations": [
"Historical LSP comparison, not paired old/new servers: no server/parser/refactor/semantic implementation change from 0.49.0 to HEAD.",
"No current parser stage or allocation profile.",
"CLI scope limited to hw/ip.",
"CLI summary fields enriched from raw logs after collection.",
"RSS phase ms values are KiB; n is du -sk KiB. Offer-queue ms holds leader/follower, not repeat trials."
]
}
@@ -0,0 +1,38 @@
{"phase": "offer-breakdown", "row": "tb-comment None", "ms": [2.648791007231921, 2.2900830081198364, 1.8117910076398402, 1.8046250042971224], "n": 0, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "load": [5.73681640625, 3.9775390625, 3.423828125], "ts": "2026-09-07T13:25:31", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "tb-comment []", "ms": [0.9796250087674707, 0.8315420127473772, 0.6832090148236603, 0.6103749910835177], "n": 0, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "load": [5.73681640625, 3.9775390625, 3.423828125], "ts": "2026-09-07T13:25:31", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "tb-comment ['quickfix']", "ms": [0.5991249927319586, 0.5691249971278012, 0.6025840120855719, 0.5445409915409982], "n": 0, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "load": [5.73681640625, 3.9775390625, 3.423828125], "ts": "2026-09-07T13:25:31", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "tb-comment ['refactor.extract']", "ms": [0.7646669982932508, 0.7779170118737966, 0.8403339888900518, 0.7558340148534626], "n": 0, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "load": [5.73681640625, 3.9775390625, 3.423828125], "ts": "2026-09-07T13:25:31", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "tb-comment ['refactor.inline']", "ms": [0.7875830051489174, 0.6747919833287597, 0.6393749790731817, 0.6757920200470835], "n": 0, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "load": [5.73681640625, 3.9775390625, 3.423828125], "ts": "2026-09-07T13:25:31", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "tb-comment ['refactor.rewrite.lucisv.ports']", "ms": [0.6737090006936342, 0.6455419934354722, 0.6391670031007379, 0.6369579932652414], "n": 0, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "load": [5.73681640625, 3.9775390625, 3.423828125], "ts": "2026-09-07T13:25:31", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "tb-comment ['source.organizeImports']", "ms": [0.760875002015382, 0.6679169891867787, 0.697499985108152, 0.6661249790340662], "n": 0, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "load": [5.73681640625, 3.9775390625, 3.423828125], "ts": "2026-09-07T13:25:31", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "aes-reg-instance None", "ms": [45.05770799005404, 27.542458003154024, 23.231625003973022, 23.235833999933675], "n": 2, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "load": [5.7578125, 4.0107421875, 3.4384765625], "ts": "2026-09-07T13:25:35", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "aes-reg-instance []", "ms": [0.8259169990196824, 0.7039159827399999, 0.625124986981973, 0.6082919717300683], "n": 0, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "load": [5.7578125, 4.0107421875, 3.4384765625], "ts": "2026-09-07T13:25:35", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "aes-reg-instance ['quickfix']", "ms": [0.6680410006083548, 0.604875007411465, 0.565416004974395, 0.6020829896442592], "n": 0, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "load": [5.7578125, 4.0107421875, 3.4384765625], "ts": "2026-09-07T13:25:35", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "aes-reg-instance ['refactor.extract']", "ms": [0.94358398928307, 0.9263330139219761, 0.937166012590751, 0.9886669868137687], "n": 1, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "load": [5.7578125, 4.0107421875, 3.4384765625], "ts": "2026-09-07T13:25:35", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "aes-reg-instance ['refactor.inline']", "ms": [0.9807079914025962, 1.1194589897058904, 1.0102500091306865, 0.9386250167153776], "n": 1, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "load": [5.7578125, 4.0107421875, 3.4384765625], "ts": "2026-09-07T13:25:35", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "aes-reg-instance ['refactor.rewrite.lucisv.ports']", "ms": [21.715665992815048, 21.75687497947365, 21.776000008685514, 21.546458010561764], "n": 0, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "load": [5.7578125, 4.0107421875, 3.4384765625], "ts": "2026-09-07T13:25:35", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "aes-reg-instance ['source.organizeImports']", "ms": [0.9921250166371465, 0.9192089783027768, 1.217999990331009, 1.0944170062430203], "n": 0, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "load": [5.7578125, 4.0107421875, 3.4384765625], "ts": "2026-09-07T13:25:35", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "aes-core-comment None", "ms": [13.355999981286004, 11.663167009828612, 9.634458983782679, 9.57550000748597], "n": 0, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "load": [5.77685546875, 4.04345703125, 3.453125], "ts": "2026-09-07T13:25:39", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "aes-core-comment []", "ms": [2.8610829904209822, 2.7658749895635992, 2.8542499931063503, 2.7579169836826622], "n": 0, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "load": [5.77685546875, 4.04345703125, 3.453125], "ts": "2026-09-07T13:25:39", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "aes-core-comment ['quickfix']", "ms": [2.780665992759168, 2.753000007942319, 2.9289159865584224, 3.0069169879425317], "n": 0, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "load": [5.77685546875, 4.04345703125, 3.453125], "ts": "2026-09-07T13:25:39", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "aes-core-comment ['refactor.extract']", "ms": [4.185750003671274, 4.111249989364296, 4.002999980002642, 3.9353749889414757], "n": 0, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "load": [5.77685546875, 4.04345703125, 3.453125], "ts": "2026-09-07T13:25:39", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "aes-core-comment ['refactor.inline']", "ms": [3.9425829891115427, 3.880875010509044, 3.857290983432904, 3.8027080008760095], "n": 0, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "load": [5.77685546875, 4.04345703125, 3.453125], "ts": "2026-09-07T13:25:39", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "aes-core-comment ['refactor.rewrite.lucisv.ports']", "ms": [3.784583997912705, 3.891624975949526, 4.187083017313853, 4.086291999556124], "n": 0, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "load": [5.77685546875, 4.04345703125, 3.453125], "ts": "2026-09-07T13:25:39", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "aes-core-comment ['source.organizeImports']", "ms": [3.9099999994505197, 4.066166002303362, 3.8036660116631538, 3.745458001503721], "n": 0, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "load": [5.77685546875, 4.04345703125, 3.453125], "ts": "2026-09-07T13:25:39", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "spi-comment None", "ms": [22.180458006914705, 17.068457993445918, 14.433125004870817, 13.315542018972337], "n": 0, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "load": [5.77685546875, 4.04345703125, 3.453125], "ts": "2026-09-07T13:25:42", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "spi-comment []", "ms": [3.7312920030672103, 3.6733750021085143, 3.6644999927375466, 3.7191250012256205], "n": 0, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "load": [5.77685546875, 4.04345703125, 3.453125], "ts": "2026-09-07T13:25:42", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "spi-comment ['quickfix']", "ms": [3.7071249971631914, 3.6136249836999923, 3.4558750048745424, 3.556207986548543], "n": 0, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "load": [5.77685546875, 4.04345703125, 3.453125], "ts": "2026-09-07T13:25:42", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "spi-comment ['refactor.extract']", "ms": [6.052584009012207, 6.4273330208379775, 6.2445410003419966, 6.224374985322356], "n": 0, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "load": [5.77685546875, 4.04345703125, 3.453125], "ts": "2026-09-07T13:25:42", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "spi-comment ['refactor.inline']", "ms": [6.242041999939829, 5.9042499924544245, 5.9013749996665865, 5.964167008642107], "n": 0, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "load": [5.77685546875, 4.04345703125, 3.453125], "ts": "2026-09-07T13:25:42", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "spi-comment ['refactor.rewrite.lucisv.ports']", "ms": [5.973499995889142, 5.905041005462408, 6.065875000786036, 6.319167005131021], "n": 0, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "load": [5.77685546875, 4.04345703125, 3.453125], "ts": "2026-09-07T13:25:42", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "spi-comment ['source.organizeImports']", "ms": [5.9690419875551015, 5.963416013401002, 6.0141249850858, 5.686499993316829], "n": 0, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "load": [5.77685546875, 4.04345703125, 3.453125], "ts": "2026-09-07T13:25:42", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "pinmux-comment None", "ms": [328.4064580220729, 311.72558400430717, 296.77983300643973, 297.5447910139337], "n": 0, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "load": [5.47412109375, 4.00927734375, 3.4443359375], "ts": "2026-09-07T13:25:47", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "pinmux-comment []", "ms": [78.88008299050853, 81.43758299411274, 81.61875000223517, 79.42966697737575], "n": 0, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "load": [5.59619140625, 4.05859375, 3.46484375], "ts": "2026-09-07T13:25:48", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "pinmux-comment ['quickfix']", "ms": [79.54375000554137, 80.05583399790339, 79.7456250002142, 79.73016699543223], "n": 0, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "load": [5.59619140625, 4.05859375, 3.46484375], "ts": "2026-09-07T13:25:48", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "pinmux-comment ['refactor.extract']", "ms": [135.2046249958221, 136.20779200573452, 134.648749983171, 135.7759169768542], "n": 0, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "load": [5.59619140625, 4.05859375, 3.46484375], "ts": "2026-09-07T13:25:49", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "pinmux-comment ['refactor.inline']", "ms": [135.50887498422526, 135.4450420185458, 134.94333298876882, 134.67495801160112], "n": 0, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "load": [5.59619140625, 4.05859375, 3.46484375], "ts": "2026-09-07T13:25:49", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "pinmux-comment ['refactor.rewrite.lucisv.ports']", "ms": [134.87987499684095, 135.46129100723192, 134.47804198949598, 134.0239580022171], "n": 0, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "load": [5.59619140625, 4.05859375, 3.46484375], "ts": "2026-09-07T13:25:50", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-breakdown", "row": "pinmux-comment ['source.organizeImports']", "ms": [135.49237500410527, 135.77187500777654, 134.63645800948143, 133.62404101644643], "n": 0, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "load": [5.59619140625, 4.05859375, 3.46484375], "ts": "2026-09-07T13:25:50", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-queue", "row": "pinmux comment -> aes definition", "ms": [304.2165410006419, 304.10845900769345], "note": "leader/follower ms, not repeats", "ts": "2026-09-07T13:25:50", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-queue", "row": "pinmux comment -> aes definition", "ms": [303.60495898639783, 303.5165830224287], "note": "leader/follower ms, not repeats", "ts": "2026-09-07T13:25:51", "label": "0.50.0-bbdbfe9"}
{"phase": "offer-queue", "row": "pinmux comment -> aes definition", "ms": [300.7473750039935, 300.6589169963263], "note": "leader/follower ms, not repeats", "ts": "2026-09-07T13:25:51", "label": "0.50.0-bbdbfe9"}
+78
View File
@@ -0,0 +1,78 @@
{"phase": "baseline", "row": "initialize", "ms": [0.3137500025331974], "ts": "2026-09-07T13:18:02", "label": "0.50.0-bbdbfe9"}
{"phase": "baseline", "row": "transport baseline ($/lucisvNoSuchMethod)", "ms": [0.24037499679252505, 0.07041700882837176, 0.0661670055706054, 0.07020801422186196], "ts": "2026-09-07T13:18:05", "label": "0.50.0-bbdbfe9"}
{"phase": "codeaction", "row": "aes_reg_top (fan-out 1), lazy", "ms": [32.81066700583324, 25.08558300905861, 22.44966698344797, 23.075750010320917], "n": 2, "titles": ["lucisv: extract selection into module\u2026", "lucisv: inline `aes_reg_top` here"], "ts": "2026-09-07T13:18:09", "label": "0.50.0-bbdbfe9"}
{"phase": "codeaction", "row": "aes (fan-out 6), lazy", "ms": [12.387124996166676, 9.11420799093321, 8.8751669973135, 8.147999993525445], "n": 1, "titles": ["lucisv: extract selection into module\u2026"], "ts": "2026-09-07T13:18:12", "label": "0.50.0-bbdbfe9"}
{"phase": "codeaction", "row": "prim_lc_sync (fan-out 42), lazy", "ms": [11.492874997202307, 9.207416005665436, 8.418125013122335, 7.53191698458977], "n": 1, "titles": ["lucisv: extract selection into module\u2026"], "ts": "2026-09-07T13:18:15", "label": "0.50.0-bbdbfe9"}
{"phase": "codeaction", "row": "prim_alert_sender (fan-out 67), lazy", "ms": [19.623000000137836, 13.507625000784174, 11.453832994448021, 9.889458015095443], "n": 1, "titles": ["lucisv: extract selection into module\u2026"], "ts": "2026-09-07T13:18:19", "label": "0.50.0-bbdbfe9"}
{"phase": "codeaction", "row": "prim_flop_2sync (fan-out 128), lazy", "ms": [9.839999984251335, 12.11854099528864, 6.341750005958602, 8.040500018978491], "n": 2, "titles": ["lucisv: extract selection into module\u2026", "lucisv: inline `prim_flop_2sync` here"], "ts": "2026-09-07T13:18:22", "label": "0.50.0-bbdbfe9"}
{"phase": "codeaction", "row": "comment line, lazy", "ms": [6.147667008917779, 3.4879590093623847, 3.500791994156316, 3.224957996280864], "n": 0, "ts": "2026-09-07T13:18:25", "label": "0.50.0-bbdbfe9"}
{"phase": "codeaction", "row": "aes_reg_top (fan-out 1), eager", "ms": [37.59024999453686, 29.921082983491942, 25.70075000403449, 24.576958996476606], "n": 2, "titles": ["lucisv: extract selection into module\u2026", "lucisv: inline `aes_reg_top` here"], "ts": "2026-09-07T13:18:29", "label": "0.50.0-bbdbfe9"}
{"phase": "codeaction", "row": "aes (fan-out 6), eager", "ms": [114.37258301884867, 93.29179098131135, 92.19895798014477, 92.72970800520852], "n": 1, "titles": ["lucisv: extract selection into module\u2026"], "ts": "2026-09-07T13:18:32", "label": "0.50.0-bbdbfe9"}
{"phase": "codeaction", "row": "prim_lc_sync (fan-out 42), eager", "ms": [263.883417006582, 269.2695829900913, 256.4913750102278, 257.67983301193453], "n": 1, "titles": ["lucisv: extract selection into module\u2026"], "ts": "2026-09-07T13:18:37", "label": "0.50.0-bbdbfe9"}
{"phase": "codeaction", "row": "prim_alert_sender (fan-out 67), eager", "ms": [412.31600000173785, 383.22150000021793, 384.81245798175223, 387.74637499591336], "n": 1, "titles": ["lucisv: extract selection into module\u2026"], "ts": "2026-09-07T13:18:43", "label": "0.50.0-bbdbfe9"}
{"phase": "codeaction", "row": "prim_flop_2sync (fan-out 128), eager", "ms": [518.3152499957941, 499.6907910099253, 495.78858297900297, 495.6017090007663], "n": 2, "titles": ["lucisv: extract selection into module\u2026", "lucisv: inline `prim_flop_2sync` here"], "ts": "2026-09-07T13:18:49", "label": "0.50.0-bbdbfe9"}
{"phase": "codeaction", "row": "comment line, eager", "ms": [3.577374998712912, 3.116250009043142, 3.099291992839426, 4.0054169949144125], "n": 0, "ts": "2026-09-07T13:18:51", "label": "0.50.0-bbdbfe9"}
{"phase": "tailrename", "row": "tail rename cursor", "ms": [0.0], "note": "{\"line\": 41, \"character\": 19}", "file": "hw/ip/entropy_src/rtl/entropy_src_main_sm.sv", "ts": "2026-09-07T13:18:56", "label": "0.50.0-bbdbfe9"}
{"phase": "tailrename", "row": "rename state_q (tail through u_entropy_src_main_sm)", "ms": [821.5857500035781, 791.3062089937739, 789.496124983998, 809.834250016138], "n": 2, "note": "tail edited", "titles": ["entropy_src_core.sv", "entropy_src_main_sm.sv"], "ts": "2026-09-07T13:19:00", "label": "0.50.0-bbdbfe9"}
{"phase": "blockers", "row": "codeAction on the aes token", "ms": [12.833957996917889, 10.779667005408555, 6.01395801641047], "note": "definition 12.65; hover 12.73; documentSymbol 12.91 | definition 10.63; hover 10.69; documentSymbol 10.82 | definition 5.95; hover 5.95; documentSymbol 6.02", "ts": "2026-09-07T13:19:10", "label": "0.50.0-bbdbfe9"}
{"phase": "blockers", "row": "prepareRename on aes", "ms": [0.36320899380370975, 0.4869579861406237, 0.3209170245099813], "note": "definition 0.26; hover 0.44; documentSymbol 0.52 | definition 0.34; hover 0.33; documentSymbol 0.48 | definition 0.23; hover 0.34; documentSymbol 0.46", "ts": "2026-09-07T13:19:19", "label": "0.50.0-bbdbfe9"}
{"phase": "blockers", "row": "rename on aes", "ms": [168.9289589994587, 146.05179199134, 163.01883399137296], "note": "definition 168.79; hover 168.81; documentSymbol 168.86 | definition 145.99; hover 146.06; documentSymbol 146.12 | definition 162.92; hover 162.95; documentSymbol 163.01", "ts": "2026-09-07T13:19:28", "label": "0.50.0-bbdbfe9"}
{"phase": "blockers", "row": "workspace/symbol 'aes'", "ms": [17.061499995179474, 9.539541992126033, 8.42766699497588], "note": "definition 16.86; hover 16.80; documentSymbol 16.79 | definition 9.29; hover 9.16; documentSymbol 9.14 | definition 8.22; hover 8.16; documentSymbol 8.14", "ts": "2026-09-07T13:19:37", "label": "0.50.0-bbdbfe9"}
{"phase": "didopen", "row": "didOpen aes.sv -> definition", "ms": [4.201541014481336, 2.875334001146257, 1.5770829922985286], "n": 326, "note": "second definition 0.11 / 0.08 / 0.09", "ts": "2026-09-07T13:19:46", "label": "0.50.0-bbdbfe9"}
{"phase": "didopen", "row": "didOpen aes_core.sv -> definition", "ms": [6.704041996272281, 3.9285829989239573, 4.679166013374925], "n": 1145, "note": "second definition 0.08 / 0.11 / 0.07", "ts": "2026-09-07T13:19:54", "label": "0.50.0-bbdbfe9"}
{"phase": "didopen", "row": "didOpen spi_device.sv -> definition", "ms": [12.980458996025845, 13.928459025919437, 8.68691600044258], "n": 1985, "note": "second definition 0.15 / 0.12 / 0.09", "ts": "2026-09-07T13:20:03", "label": "0.50.0-bbdbfe9"}
{"phase": "didopen", "row": "didOpen pinmux_reg_top.sv -> definition", "ms": [129.95958302053623, 128.89612501021475, 128.12949999351986], "n": 42192, "note": "second definition 0.12 / 0.09 / 0.09", "ts": "2026-09-07T13:20:12", "label": "0.50.0-bbdbfe9"}
{"phase": "scan", "row": "default, cold cache", "ms": [90.97966700210236, 110.86883299867623, 98.73374999733642], "note": "0 files indexed | 124 files indexed", "ts": "2026-09-07T13:20:18", "label": "0.50.0-bbdbfe9"}
{"phase": "scan", "row": "default, warm cache", "ms": [56.196375022409484, 49.91412500385195, 52.97879100544378], "note": "0 files indexed | 124 files indexed, 123 from cache", "ts": "2026-09-07T13:20:23", "label": "0.50.0-bbdbfe9"}
{"phase": "scan", "row": "empty-index, cold cache", "ms": [104.49991698260419, 92.73062500869855, 103.43666700646281], "note": "0 files indexed | 124 files indexed", "ts": "2026-09-07T13:20:27", "label": "0.50.0-bbdbfe9"}
{"phase": "scan", "row": "empty-index, warm cache", "ms": [42.02829100540839, 51.617916993563995, 52.5576249929145], "note": "0 files indexed | 124 files indexed, 123 from cache", "ts": "2026-09-07T13:20:32", "label": "0.50.0-bbdbfe9"}
{"phase": "scan", "row": "depth0, cold cache", "ms": [116.60375000792556, 124.47691700072028, 114.59854201530106], "note": "124 files indexed | 1 file indexed", "ts": "2026-09-07T13:20:37", "label": "0.50.0-bbdbfe9"}
{"phase": "scan", "row": "depth0, warm cache", "ms": [62.903957994421944, 58.09541599592194, 62.97554200864397], "note": "124 files indexed, 123 from cache | 1 file indexed", "ts": "2026-09-07T13:20:42", "label": "0.50.0-bbdbfe9"}
{"phase": "scan", "row": "workspace, cold cache", "ms": [2830.29950002674, 2853.0597079952713, 2845.6383750017267], "note": "124 files indexed | 3976 files indexed, 123 from cache, 3 skipped", "ts": "2026-09-07T13:20:55", "label": "0.50.0-bbdbfe9"}
{"phase": "scan", "row": "workspace, warm cache", "ms": [1322.2372920135967, 1330.9673749899957, 1344.0332919999491], "note": "124 files indexed, 123 from cache | 3976 files indexed, 3975 from cache, 3 skipped", "ts": "2026-09-07T13:21:04", "label": "0.50.0-bbdbfe9"}
{"phase": "rss", "row": "server RSS after workspace scan, cold cache", "ms": [541248.0, 543600.0, 540688.0], "n": 45404, "note": "RSS KB above; index store 45404 KB", "ts": "2026-09-07T13:21:21", "label": "0.50.0-bbdbfe9"}
{"phase": "rss", "row": "server RSS after workspace scan, warm cache", "ms": [579952.0, 587552.0, 586992.0], "n": 45404, "note": "RSS KB above; index store 45404 KB", "ts": "2026-09-07T13:21:33", "label": "0.50.0-bbdbfe9"}
{"phase": "refactor", "row": "expand-wildcard offer", "ms": [13.727207988267764, 10.321332985768095, 8.66449999739416, 8.051457989495248], "n": 2, "titles": ["lucisv: expand .* (32 connections)", "lucisv: extract selection into module\u2026"], "file": "hw/ip/kmac/fpv/tb/sha3_fpv.sv", "position": {"line": 54, "character": 4}, "ts": "2026-09-07T13:21:37", "label": "0.50.0-bbdbfe9"}
{"phase": "refactor", "row": "expand-wildcard resolve: lucisv: expand .* (32 connections)", "ms": [73.01820800057612, 70.3485419799108, 70.37633302388713, 70.73025000863709], "n": 1, "ts": "2026-09-07T13:21:37", "label": "0.50.0-bbdbfe9"}
{"phase": "refactor", "row": "expand-wildcard resolve: lucisv: extract selection into module\u2026", "ms": [0.09695798507891595, 0.0627499830443412, 0.046375003876164556, 0.04379200981929898], "n": 0, "ts": "2026-09-07T13:21:37", "label": "0.50.0-bbdbfe9"}
{"phase": "refactor", "row": "organize-imports offer", "ms": [17.78845800436102, 16.333790990756825, 16.031375009333715, 14.99787499778904], "n": 2, "titles": ["lucisv: organize imports (removes 1, sorts 1)", "lucisv: extract selection into module\u2026"], "file": "hw/ip/aes/rtl/aes_sbox_canright_masked.sv", "position": {"line": 42, "character": 2}, "ts": "2026-09-07T13:21:41", "label": "0.50.0-bbdbfe9"}
{"phase": "refactor", "row": "organize-imports resolve: lucisv: organize imports (removes 1, sorts 1)", "ms": [10.307541990187019, 10.010500001953915, 9.585624997271225, 10.693999996874481], "n": 1, "ts": "2026-09-07T13:21:41", "label": "0.50.0-bbdbfe9"}
{"phase": "refactor", "row": "organize-imports resolve: lucisv: extract selection into module\u2026", "ms": [0.09654200403019786, 0.07049998384900391, 0.045666994992643595, 0.03566697705537081], "n": 0, "ts": "2026-09-07T13:21:41", "label": "0.50.0-bbdbfe9"}
{"phase": "refactor", "row": "inline-module offer", "ms": [17.295291007030755, 15.189333003945649, 13.657124974997714, 13.23316601337865], "n": 2, "titles": ["lucisv: extract selection into module\u2026", "lucisv: inline `tlul_cmd_intg_gen` here"], "file": "hw/ip/aes/rtl/aes_wrap.sv", "position": {"line": 66, "character": 2}, "ts": "2026-09-07T13:21:44", "label": "0.50.0-bbdbfe9"}
{"phase": "refactor", "row": "inline-module resolve: lucisv: extract selection into module\u2026", "ms": [0.09745798888616264, 0.05833400064148009, 0.04008298856206238, 0.05237499135546386], "n": 0, "ts": "2026-09-07T13:21:44", "label": "0.50.0-bbdbfe9"}
{"phase": "refactor", "row": "inline-module resolve: lucisv: inline `tlul_cmd_intg_gen` here", "ms": [0.05062500713393092, 0.034958007745444775, 0.0367090106010437, 0.05716699524782598], "n": 0, "ts": "2026-09-07T13:21:44", "label": "0.50.0-bbdbfe9"}
{"phase": "refactor", "row": "port-actions offer", "ms": [41.94795899093151, 30.146292003337294, 26.21850001742132, 25.045875023351982], "n": 2, "titles": ["lucisv: connect 2 missing ports", "lucisv: extract selection into module\u2026"], "file": "hw/ip/aes/rtl/aes_wrap.sv", "position": {"line": 78, "character": 2}, "ts": "2026-09-07T13:21:48", "label": "0.50.0-bbdbfe9"}
{"phase": "refactor", "row": "port-actions resolve: lucisv: connect 2 missing ports", "ms": [170.76995800016448, 165.78358400147408, 164.78945800918154, 165.8231669862289], "n": 1, "ts": "2026-09-07T13:21:49", "label": "0.50.0-bbdbfe9"}
{"phase": "refactor", "row": "port-actions resolve: lucisv: extract selection into module\u2026", "ms": [0.17820799257606268, 0.06591700366698205, 0.07270899368450046, 0.07120799273252487], "n": 0, "ts": "2026-09-07T13:21:49", "label": "0.50.0-bbdbfe9"}
{"phase": "refactor", "row": "ansi-header (no offer expected) offer", "ms": [6.597665982553735, 3.4144170058425516, 4.115707997698337, 2.7353339828550816], "n": 0, "titles": [], "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 8, "character": 0}, "ts": "2026-09-07T13:21:52", "label": "0.50.0-bbdbfe9"}
{"phase": "refactor", "row": "extract-module offer (selection)", "ms": [5.251583002973348, 2.8505839873105288, 2.6334169961046427, 2.9186659958213568], "n": 1, "titles": ["lucisv: extract selection into module\u2026"], "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 220, "character": 0}, "note": "selection 220:0-222:53", "ts": "2026-09-07T13:21:56", "label": "0.50.0-bbdbfe9"}
{"phase": "refactor", "row": "extract-module resolve: lucisv: extract selection into module\u2026", "ms": [0.11795799946412444, 0.08804097888059914, 0.061291997553780675, 0.059165991842746735], "ts": "2026-09-07T13:21:56", "label": "0.50.0-bbdbfe9"}
{"phase": "rename", "row": "prepareRename on aes", "ms": [0.3741249965969473, 0.1242909929715097, 0.08687499212101102, 0.11412499588914216], "note": "{\"placeholder\": \"aes\", \"range\": {\"end\": {\"character\": 5, \"line\": 44}, \"start\": {\"character\": 2, \"line\": 44}}}", "ts": "2026-09-07T13:22:00", "label": "0.50.0-bbdbfe9"}
{"phase": "rename", "row": "rename aes -> aes_renamed", "ms": [168.67058299249038, 139.3450839968864, 140.34991699736565, 140.02487499965355], "n": 9, "ts": "2026-09-07T13:22:01", "label": "0.50.0-bbdbfe9"}
{"phase": "flush", "row": "didChange flush (foldingRange barrier)", "ms": [1.051125000230968, 0.7182499975897372, 0.6553329876624048, 0.7070830033626407], "ts": "2026-09-07T13:22:05", "label": "0.50.0-bbdbfe9"}
{"phase": "diagnostics", "row": "publish after didChange (incl. ~150 ms debounce)", "ms": [158.02012500353158, 157.61862500221469, 155.95241700066254, 156.7312499973923], "ts": "2026-09-07T13:22:09", "label": "0.50.0-bbdbfe9"}
{"phase": "completion", "row": "completion after ''", "ms": [5.074124987004325, 3.3819169912021607, 3.3374999766238034, 3.3187080116476864], "n": 512, "ts": "2026-09-07T13:22:12", "label": "0.50.0-bbdbfe9"}
{"phase": "completion", "row": "completion after 'a'", "ms": [4.928332986310124, 3.4707500017248094, 3.705041977809742, 4.101250000530854], "n": 512, "ts": "2026-09-07T13:22:12", "label": "0.50.0-bbdbfe9"}
{"phase": "completion", "row": "completion after 'ae'", "ms": [4.227790981531143, 3.2232919766101986, 3.289915999630466, 3.03837499814108], "n": 512, "ts": "2026-09-07T13:22:12", "label": "0.50.0-bbdbfe9"}
{"phase": "completion", "row": "completion after 'aes'", "ms": [10.328167001716793, 8.345458016265184, 8.103875006781891, 7.97045900253579], "n": 512, "ts": "2026-09-07T13:22:12", "label": "0.50.0-bbdbfe9"}
{"phase": "completion", "row": "completion after 'aes_'", "ms": [8.156291994964704, 7.06891599111259, 7.480166997993365, 8.142542006680742], "n": 512, "ts": "2026-09-07T13:22:12", "label": "0.50.0-bbdbfe9"}
{"phase": "completion", "row": "completion after 'prim_'", "ms": [5.011625005863607, 4.2414169874973595, 4.21429198468104, 4.112499998882413], "n": 512, "ts": "2026-09-07T13:22:13", "label": "0.50.0-bbdbfe9"}
{"phase": "completion", "row": "completion after 'clk'", "ms": [4.2789580184035, 4.253791994415224, 4.376500000944361, 4.032416007248685], "n": 512, "ts": "2026-09-07T13:22:13", "label": "0.50.0-bbdbfe9"}
{"phase": "completion", "row": "completion after 'aes_reg'", "ms": [3.8101660029496998, 3.188000002410263, 3.131667006528005, 3.098332992522046], "n": 512, "ts": "2026-09-07T13:22:13", "label": "0.50.0-bbdbfe9"}
{"phase": "completion", "row": "completion after 'zzzz'", "ms": [1.2714170152321458, 0.34666599822230637, 0.3170420241076499, 0.34087500534951687], "n": 1, "ts": "2026-09-07T13:22:13", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "definition on aes", "ms": [0.3645409888122231, 0.08429199806414545, 0.06970801041461527, 0.04816701402887702], "n": 1, "method": "textDocument/definition", "ts": "2026-09-07T13:22:16", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "hover on aes", "ms": [0.6570420227944851, 0.08033300400711596, 0.07691601058468223, 0.05837497883476317], "n": 1, "method": "textDocument/hover", "ts": "2026-09-07T13:22:19", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "typeDefinition on aes", "ms": [0.26041700039058924, 0.13525001122616231, 0.08075000368990004, 0.06658400525338948], "n": 1, "method": "textDocument/typeDefinition", "ts": "2026-09-07T13:22:22", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "documentHighlight", "ms": [0.2092079957947135, 0.09233300806954503, 0.07170799653977156, 0.060166988987475634], "n": 1, "method": "textDocument/documentHighlight", "ts": "2026-09-07T13:22:25", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "references on aes", "ms": [1.353750005364418, 0.6473749817814678, 0.5687499942723662, 0.6048329814802855], "n": 14, "method": "textDocument/references", "ts": "2026-09-07T13:22:27", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "references on .clk_i", "ms": [1.0404580098111182, 0.5677500157617033, 0.5708749813493341, 0.4852919955737889], "n": 12, "method": "textDocument/references", "ts": "2026-09-07T13:22:30", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "signatureHelp in the port list", "ms": [1.3370420201681554, 0.7152920006774366, 1.3881659833714366, 0.6492499960586429], "n": 1, "method": "textDocument/signatureHelp", "ts": "2026-09-07T13:22:33", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "documentSymbol", "ms": [0.8117920078802854, 1.3970830186735839, 0.30033400980755687, 0.31920798937790096], "n": 1, "method": "textDocument/documentSymbol", "ts": "2026-09-07T13:22:36", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "foldingRange", "ms": [0.29749999521300197, 0.09770799078978598, 0.07483400986529887, 0.06354099605232477], "n": 4, "method": "textDocument/foldingRange", "ts": "2026-09-07T13:22:40", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "codeLens", "ms": [0.2142910088878125, 0.055042008170858026, 0.05558400880545378, 0.051875016652047634], "n": 1, "method": "textDocument/codeLens", "ts": "2026-09-07T13:22:42", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "documentLink", "ms": [0.2509579935576767, 0.0686249986756593, 0.06649998249486089, 0.050915987230837345], "n": 0, "method": "textDocument/documentLink", "ts": "2026-09-07T13:22:45", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "selectionRange", "ms": [0.4040839849039912, 0.10408301022835076, 0.1862499921116978, 0.09975000284612179], "n": 1, "method": "textDocument/selectionRange", "ts": "2026-09-07T13:22:48", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "semanticTokens/full", "ms": [0.5770419957116246, 0.24774999474175274, 0.2038750099018216, 0.21029100753366947], "n": 1, "method": "textDocument/semanticTokens/full", "ts": "2026-09-07T13:22:51", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "inlayHint (whole file)", "ms": [0.5544160085264593, 0.2564169990364462, 0.28700000257231295, 0.4432909772731364], "n": 4, "method": "textDocument/inlayHint", "ts": "2026-09-07T13:22:54", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "diagnostic (pull)", "ms": [0.7375419954769313, 0.2377500059083104, 0.1999999803956598, 0.25483398349024355], "n": 0, "method": "textDocument/diagnostic", "ts": "2026-09-07T13:22:57", "label": "0.50.0-bbdbfe9"}
{"phase": "nav", "row": "workspace/symbol 'aes'", "ms": [22.819792007794604, 13.492500002030283, 10.002707975218073, 8.22295801481232], "n": 256, "method": "workspace/symbol", "ts": "2026-09-07T13:23:00", "label": "0.50.0-bbdbfe9"}
+13
View File
@@ -0,0 +1,13 @@
{"phase": "baseline", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "baseline", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.50.0-bbdbfe9", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf5-20260907/caches", "--out", "/tmp/lucisv-perf5-20260907/results.jsonl", "--tries", "3"], "start": 1788805082.148632, "load_before": [4.09521484375, 3.15234375, 3.04052734375], "exit": 0, "end": 1788805085.3895628, "load_after": [4.24755859375, 3.19921875, 3.0576171875], "corpus_unchanged": true}
{"phase": "codeaction", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "codeaction", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.50.0-bbdbfe9", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf5-20260907/caches", "--out", "/tmp/lucisv-perf5-20260907/results.jsonl", "--tries", "3"], "start": 1788805085.4912288, "load_before": [4.24755859375, 3.19921875, 3.0576171875], "exit": 0, "end": 1788805132.387778, "load_after": [4.53564453125, 3.4072265625, 3.13916015625], "corpus_unchanged": true}
{"phase": "tailrename", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "tailrename", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.50.0-bbdbfe9", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf5-20260907/caches", "--out", "/tmp/lucisv-perf5-20260907/results.jsonl", "--tries", "3"], "start": 1788805132.4831302, "load_before": [4.53564453125, 3.4072265625, 3.13916015625], "exit": 0, "end": 1788805141.17239, "load_after": [4.58740234375, 3.45849609375, 3.16015625], "corpus_unchanged": true}
{"phase": "blockers", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "blockers", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.50.0-bbdbfe9", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf5-20260907/caches", "--out", "/tmp/lucisv-perf5-20260907/results.jsonl", "--tries", "3"], "start": 1788805141.2841558, "load_before": [4.58740234375, 3.45849609375, 3.16015625], "exit": 0, "end": 1788805177.25146, "load_after": [4.06396484375, 3.45263671875, 3.16943359375], "corpus_unchanged": true}
{"phase": "didopen", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "didopen", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.50.0-bbdbfe9", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf5-20260907/caches", "--out", "/tmp/lucisv-perf5-20260907/results.jsonl", "--tries", "3"], "start": 1788805177.351585, "load_before": [4.06396484375, 3.45263671875, 3.16943359375], "exit": 0, "end": 1788805213.377633, "load_after": [3.31005859375, 3.3564453125, 3.14697265625], "corpus_unchanged": true}
{"phase": "scan", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "scan", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.50.0-bbdbfe9", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf5-20260907/caches", "--out", "/tmp/lucisv-perf5-20260907/results.jsonl", "--tries", "3"], "start": 1788805213.489726, "load_before": [3.31005859375, 3.3564453125, 3.14697265625], "exit": 0, "end": 1788805265.007585, "load_after": [3.19775390625, 3.30322265625, 3.13720703125], "corpus_unchanged": true}
{"phase": "rss", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "rss", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.50.0-bbdbfe9", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf5-20260907/caches", "--out", "/tmp/lucisv-perf5-20260907/results.jsonl", "--tries", "3"], "start": 1788805265.102868, "load_before": [3.19775390625, 3.30322265625, 3.13720703125], "exit": 0, "end": 1788805293.521557, "load_after": [3.1826171875, 3.27587890625, 3.13134765625], "corpus_unchanged": true}
{"phase": "refactor", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "refactor", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.50.0-bbdbfe9", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf5-20260907/caches", "--out", "/tmp/lucisv-perf5-20260907/results.jsonl", "--tries", "3"], "start": 1788805293.641702, "load_before": [3.1826171875, 3.27587890625, 3.13134765625], "exit": 0, "end": 1788805317.612632, "load_after": [3.3896484375, 3.32080078125, 3.15087890625], "corpus_unchanged": true}
{"phase": "rename", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "rename", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.50.0-bbdbfe9", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf5-20260907/caches", "--out", "/tmp/lucisv-perf5-20260907/results.jsonl", "--tries", "3"], "start": 1788805317.737279, "load_before": [3.3896484375, 3.32080078125, 3.15087890625], "exit": 0, "end": 1788805322.05387, "load_after": [3.2783203125, 3.298828125, 3.14404296875], "corpus_unchanged": true}
{"phase": "flush", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "flush", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.50.0-bbdbfe9", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf5-20260907/caches", "--out", "/tmp/lucisv-perf5-20260907/results.jsonl", "--tries", "3"], "start": 1788805322.1551218, "load_before": [3.2783203125, 3.298828125, 3.14404296875], "exit": 0, "end": 1788805325.392707, "load_after": [3.255859375, 3.29345703125, 3.14306640625], "corpus_unchanged": true}
{"phase": "diagnostics", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "diagnostics", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.50.0-bbdbfe9", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf5-20260907/caches", "--out", "/tmp/lucisv-perf5-20260907/results.jsonl", "--tries", "3"], "start": 1788805325.505455, "load_before": [3.255859375, 3.29345703125, 3.14306640625], "exit": 0, "end": 1788805329.847487, "load_after": [2.9951171875, 3.23876953125, 3.12451171875], "corpus_unchanged": true}
{"phase": "completion", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "completion", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.50.0-bbdbfe9", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf5-20260907/caches", "--out", "/tmp/lucisv-perf5-20260907/results.jsonl", "--tries", "3"], "start": 1788805329.958755, "load_before": [2.9951171875, 3.23876953125, 3.12451171875], "exit": 0, "end": 1788805333.194902, "load_after": [2.9150390625, 3.2177734375, 3.11767578125], "corpus_unchanged": true}
{"phase": "nav", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "nav", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.50.0-bbdbfe9", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf5-20260907/caches", "--out", "/tmp/lucisv-perf5-20260907/results.jsonl", "--tries", "3"], "start": 1788805333.2985768, "load_before": [2.9150390625, 3.2177734375, 3.11767578125], "exit": 0, "end": 1788805381.2481222, "load_after": [3.44091796875, 3.3349609375, 3.16552734375], "corpus_unchanged": true}
+140
View File
@@ -0,0 +1,140 @@
# Performance implementation tracker — take 5
**Status: baseline measured; implementation has not started.** The implementation agent owns the blank candidate columns and experiment entries below. Read [the causes and detailed plan](../performance_take5.md) before selecting work. Baseline provenance and raw rows are in [take5-baseline](take5-baseline/README.md).
Do not overwrite the baseline, silently replace a workload, omit refusals, or report a proposed target as an achieved result. Use `not measured`, `blocked`, or `not applicable` rather than zero. Update this file after each measured stage, including rejected changes.
## Baseline identity
| Field | Recorded baseline | Candidate — agent fills |
|---|---|---|
| Source | `bbdbfe9045e8a85f8ea471529ea739af6cade77f`, version 0.50.0 | — |
| Source modifications | None to implementation; analysis/evidence docs only | — |
| Server SHA-256 | `27e0a0df5b77102ec79c23279da64e722bffd440c604ad6d03ff66c2f6398ad3` | — |
| CLI SHA-256 | `894054128495b764bb966e7b923e08267e57aea83fdc611fad4b4ed7a66b51e3` | — |
| Build | release, locked dependencies, workspace LTO enabled | — |
| Corpus | OpenTitan `00981352642fb65ef2b6c47143a0f6bb31fd4a97` | — |
| Modified corpus inputs | Three existing files, listed/hashed in `metadata.json` | — |
| Host / OS | M1 Max; macOS 27.0 `26A5425a` | — |
| Date / zone | 2026-09-07, America/Chicago | — |
| Load, standard phases | 1-minute samples 2.92–4.59 | — |
| Guard | 8 GiB / 1800 s; zero kills in retained runs | — |
| Harness | `tools/perf` at baseline HEAD, supplementary probes in evidence README | — |
| Warmth / scope / capabilities | Warm workspace, lazy client unless metric says otherwise | — |
| Raw evidence | `take5-baseline/*.jsonl`, `metadata.json` | — |
Before timing, record the exact revision/diff, binaries, compiler, machine, corpus hashes, enabled rules/settings, client capabilities and open-buffer set. Build first and stop all builds before measurements. Keep reference/candidate caches separate; alternate run order. Record actual commands and whether each trial is a new process. Three samples are the historical comparison minimum; for a close decision use at least three sessions and 20 measured requests per session, keep first requests separate and record the full distributions. Do not derive p95/p99 from the three-repeat baseline.
## Stage ledger
The order follows the plan. Later stages are conditional on the preceding measurements. All candidate statuses start unimplemented.
| Stage | Work | Depends on | Owner / commit | Status | Evidence and decision |
|---|---|---|---|---|---|
| P0 | Harness status/units/command execution/cold-cache corrections | — | — | Not started | — |
| P1a | Gate lint/fence/config by requested kinds; avoid fence work without fixes | P0 | — | Not started | — |
| P1b | Shared parsed selectors; revision-bound fence reuse; invalidate any additional cache correctly | P1a | — | Not started | — |
| P1c | Engine-owned lightweight ports/import offers | Reprofile P1b | — | Not started | — |
| P2a | Rename per-stage timings and selected/watched/input counts | P0 | — | Not started | — |
| P2b | Reuse per-file input analysis in request-local scope | P2a | — | Not started | — |
| P2c | Reuse unchanged after-facts/semantics; re-resolve external references | P2b | — | Not started | — |
| P2d | Exact-name postings; source-set narrowing only with whole-scope proof | Reprofile P2c; topology 33 for shared module selector | — | Not started | — |
| P3 | Reuse CLI census parse for package exports/interfaces | P0; coordinate semantic ownership | — | Not started | — |
| P4a | Attribute scan/prelude/table-build/cache/RSS cost | P0 | — | Not started | — |
| P4b | Implement the dominant measured startup/memory fix | P4a; serialize with state/index changes | — | Not started | — |
| P5 | Parser or cancellable snapshot work only if a new measured case justifies it | Reprofile P1–P4 | — | Deferred | — |
## Before / after performance
Ordinary latency cells are **first / min–max of three repeats, milliseconds**. Fresh-session rows instead show all-session range. Baseline raw row names below make the comparison auditable. Fill candidate raw samples, median/distribution and counts in an experiment entry; this table is the readable overview. Use paired reference/candidate medians for improvement: `100 × (reference − candidate) / reference`. A cross-day comparison is context only.
| Metric / baseline source | Baseline | Proposed goal or guardrail | Candidate | Paired change | Verdict |
|---|---:|---|---|---|---|
| Pinmux comment, lazy all families (`offer-breakdown`) | 328.41 / 296.78–311.73 ms; 0 actions | Repeated <16 ms; first-after-edit separate | — | — | — |
| Pinmux comment, `only: []` | 78.88 / 79.43–81.62 ms; 0 actions | Return near transport floor; no lint/parse | — | — | — |
| Pinmux comment, quickfix only | 79.54 / 79.73–80.06 ms; 0 actions | Avoid repeated lint/fence work safely | — | — | — |
| Pinmux comment → queued definition (`offer-queue`) | 300.66–304.11 ms follower, 3 pipelines | Repeated follower <16 ms if no other blocker | — | — | — |
| `tb.sv` comment, lazy (`codeaction`) | 6.15 / 3.22–3.50 ms; 0 actions | Repeated <5 ms; no added parse | — | — | — |
| `aes` lazy offer (`codeaction`) | 12.39 / 8.15–9.11 ms; 1 action | Repeated <5 ms | — | — | — |
| `aes_reg_top` lazy offer (`codeaction`) | 32.81 / 22.45–25.09 ms; 2 actions | Repeated <10 ms | — | — | — |
| `aes_reg_top` ports-only offer (`offer-breakdown`) | 21.72 / 21.55–21.78 ms; 0 port actions | Remove throwaway edit computation | — | — | — |
| `state_q` tail rename (`tailrename`) | 821.59 / 789.50–809.83 ms; 2 files | At least 2× faster; stretch <200 ms | — | — | — |
| Ordinary `aes` rename (`rename`) | 168.67 / 139.34–140.35 ms; 9 files | No regression; exact edit/warning parity | — | — | — |
| Definition behind ordinary rename (`blockers`) | 145.99–168.79 ms, 3 pipelines | Falls with rename work | — | — | — |
| Connect missing ports resolve (`refactor`) | 170.77 / 164.79–165.82 ms; 1 file | Measure collateral benefit; exact edit parity | — | — | — |
| Expand wildcard resolve (`refactor`) | 73.02 / 70.35–70.73 ms; 1 file, 32 connections | No lost connections/refusals | — | — | — |
| Eager 128-fan-out offer (`codeaction`) | 518.32 / 495.60–499.69 ms | Compatibility/perf guardrail; not first priority | — | — | — |
| Cold workspace scan (`scan`, 3 fresh sessions) | 2830.30–2853.06 ms; mean 2843.00 | Investigation goal <2300 ms | — | — | — |
| Warm workspace scan (`scan`, 3 fresh sessions) | 1322.24–1344.03 ms; mean 1332.41 | Investigation goal <1000 ms | — | — | — |
| Cold idle RSS (`rss`, 3 fresh sessions) | 528.0–530.9 MiB | Investigate ≥15% reduction; counts unchanged | — | — | — |
| Warm idle RSS (`rss`, 3 fresh sessions) | 566.4–573.8 MiB | Investigate ≥15% reduction; measure peak too | — | — | — |
| Index store allocated size (`rss`, `du -sk`) | 44.34 MiB | Record codec/version and contents | — | — | — |
| Pinmux open → definition (`didopen`, 3 fresh sessions) | 128.13–129.96 ms | Preserve §46 benefit | — | — | — |
| `tb.sv` dirty-buffer folding barrier (`flush`) | 1.05 / 0.65–0.72 ms | No material regression | — | — | — |
| Diagnostics publication (`diagnostics`) | 158.02 / 155.95–157.62 ms | Preserve debounce/burst coalescing | — | — | — |
| Unblocked definition (`nav`) | 0.365 / 0.048–0.084 ms; 1 location | Transport-sensitive regression control | — | — | — |
| Transport floor (`baseline`) | 0.240 / 0.066–0.070 ms | Record contemporaneous noise | — | — | — |
| CLI default, hw/ip | 0.59 / 0.40–0.40 s; 445 findings | First trial outlier; compare paired repeats | — | — | — |
| CLI all-style, hw/ip | 0.58 / 0.56–0.58 s; mean 0.573 s; 7751 findings | Retain all findings | — | — | — |
| CLI all-style minus unused-import, attribution only | 0.44 / 0.44–0.47 s; mean 0.450 s; 7734 findings | Save ≥half of 123 ms increment with rule enabled | — | — | — |
| CLI all-style peak RSS | 208.4 MiB max of 3 | No material memory increase | — | — | — |
| Format check independently cold, hw/ip | 0.67 / 0.59–0.68 s | 0 cache hits; unchanged outcomes | — | — | — |
| Format check warm, hw/ip | 0.69 / 0.61–0.63 s | 30 hits; unchanged outcomes | — | — | — |
## Work counts and gaps that must be filled before attributing gains
| Measurement | Baseline knowledge | Reference — agent fills | Candidate — agent fills |
|---|---|---|---|
| Additional parses per no-offer all-family action | 5 text-parse entry points confirmed in source; no runtime counter | — | — |
| Lint/config/fence time separately | About 80 ms combined on generated file; unseparated | — | — |
| Selector time by family and file size | Filtered ablations preserved in raw data | — | — |
| Tail rename selected paths / input bytes / selection reasons | Not measured; **2 output files is not input count** | — | — |
| Tail rename watched vs edited paths | Edited 2; watched unmeasured | — | — |
| Tail rename index / parse / analysis / resolution / verification stage times | Not measured | — | — |
| Ordinary rename selected bytes / stages | Edited 9; other counts unmeasured | — | — |
| Ambiguous-use all-sources fallback frequency | Not measured | — | — |
| Per-file parses for CLI census and lint | Multiple paths confirmed; runtime counts unmeasured | — | — |
| CLI package-census vs unused-import body time | Combined 123 ms wall increment; stages unseparated | — | — |
| Startup discovery / hash / decode / merge / candidates / includes / compact | Only combined scan time measured | — | — |
| Peak server RSS during startup and refactoring | Idle RSS only; peak unmeasured | — | — |
| First useful response during scan; open buffers 1 / 10 / 100 | Not measured in this round | — | — |
| Actual inline/extract command time and applyEdit payload | Not measured; existing resolve rows invalid for this purpose | — | — |
| First offer after didChange vs repeated unchanged offer | Separate distribution needed | — | — |
## Correctness and integration gates
| Gate | Required evidence | Candidate result / log |
|---|---|---|
| Action parity | Titles/kinds/counts/commands/data or edits/refusals; empty/prefix filters; cursor and selection | — |
| Reuse freshness | didChange, unsaved overlays, config/options/tab width/waiver changes, index generation, closed files changed on disk | — |
| Fence parity | All aliases, class/statement fences, malformed source, raw scan backstop, insertions and multi-edit fixes | — |
| Refactor whole-scope parity | Exact edits, warnings, refusal sentences; old/new common names, unresolved and ambiguous uses | — |
| Topology handshake 33 | Transitive `wrap.u_S.x` refusal coverage before sharing/narrowing module sources | — |
| Refactor verification | Token identity, semantic identity, parse-diagnostic preservation, comments/attributes, span remapping | — |
| CLI output | Compare full findings/fixes/waivers/exit codes, not just counts; disabled-rule run stays attribution-only | — |
| Index parity | Fresh/incremental/absorbed fingerprints, unsaved wins, coherent partial publication, scope/filelist/rootless behavior | — |
| Persistence | Corrupt/truncated/old-format stores rebuild safely; interrupted writes; content hash retained | — |
| Resources | Guard outcomes, idle and peak memory, allocated/actual store size, stack-size requirement | — |
| Formatting | `cargo fmt --all -- --check`, appropriate formatter snapshot/idempotency and corpus gates | — |
| Lint/tests | Guarded affected tests then clippy/workspace tests at integration, no benchmark overlap | — |
| Documentation | Feature README, handshake updates in topo, accepted numbers in perf README; reserved lead Review untouched by dev | — |
## Experiment record — copy for every stage or rejected attempt
- Experiment ID / stage / date / owner:
- Hypothesis and exact expected work reduction:
- Reference commit, candidate commit or diff hash, binary hashes:
- Files changed / API contracts amended / topology references:
- Workload, corpus/input hashes, open files, cursor/range, rules, client capabilities:
- Machine, compiler/profile, threads, load before/after, competing activity:
- Commands, cache reset/prime steps, trial ordering and fresh-session count:
- Raw evidence path, explicit units, full sample arrays:
- Reference first / repeat median / range; candidate first / repeat median / range:
- Work counts: reads, parses, analyzed/selected/watched/edited files and bytes:
- Result/status/count/fingerprint comparisons, warnings and refusal checks:
- Idle RSS / peak RSS / cache size / guard outcomes:
- Target achieved or missed; paired improvement and variability:
- Correctness tests and logs:
- Interpretation, remaining bottleneck, tradeoffs, rejected alternatives:
- Decision: retain / revise / reject / defer; next stage justified by evidence:
- QA result and lead review link:
+189
View File
@@ -0,0 +1,189 @@
# Performance take 5 — latest analysis and implementation plan
**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).
## Scope and confidence
- Measured **0.50.0, local HEAD `bbdbfe9045e8a85f8ea471529ea739af6cade77f`**, on 2026-09-07. “Latest” here means the current checkout; no remote was fetched or changed. `cargo build --release --locked -p lucisv -p lucisv_server` confirmed release artifacts were current before timing.
- Same OpenTitan commit as take 4: `00981352642fb65ef2b6c47143a0f6bb31fd4a97`, with the same three pre-existing modified files. All commands treated corpus text as read-only; edits were discarded. Corpus status was unchanged after every standard phase and CLI trial, and after the supplementary probe. End-of-run hashes of modified files are in the provenance record.
- Same M1 Max machine described in the previous report, macOS 27.0 build `26A5425a`. Standard-phase one-minute load samples were **2.92–4.59**. No builds overlapped benchmarks. Retained runs used the repository's 8 GiB / 1,800-second guard; an initial sandbox run whose guard could not read process memory was discarded and rerun with the guard operating. No guard kill occurred.
- Standard phases: baseline, codeaction, tailrename, blockers, didopen, scan, rss, refactor, rename, flush, diagnostics, completion and nav. Added read-only action-family/large-file probes and a paired CLI experiment on `hw/ip`. Other CLI trees, actual inline/extract command execution, allocation profiles and parser-stage timings were not remeasured.
- `git diff v0.49.0..HEAD -- crates/` shows production changes only in CLI format-cache key handling and the core cache. The server/parser/semantic/refactor implementation did not change. Therefore the old **0.49.0 LSP column below is historical context, not a controlled regression comparison**. Small timing movements do not establish a 0.50.0 regression. CLI binaries 0.43.0, 0.49.0 and 0.50.0 were measured in the same experiment with alternating binary order.
- Four request samples normally mean first request plus three repeats within one session. Scan and file-open rows use three fresh processes. These small samples support prioritization, not p95/p99 or statistical significance. The supplemental action filters were tested sequentially within each file's session; their timing differences are approximate attribution controls, not a CPU profile.
## Current measurements and what they imply
All latencies are milliseconds unless marked otherwise. Warm workspace scope, resolving/lazy client unless stated. Historical values come from [take 4](performance_take4.md), whose results in turn compare [take 3](performance_take3.md).
| Scenario | 0.49.0 historical first / repeats | 0.50.0 first / repeats | Meaning |
|---|---:|---:|---|
| No-offer comment, 42,192-line `pinmux_reg_top.sv` | not measured | **328.4 / 296.8–311.7** | Highest-priority newly exposed interactive cost; zero actions |
| Definition queued behind that comment action | not measured | **300.7–304.1**, three pipelines | Essentially the whole blocker cost |
| `state_q` rename through instance tail | 793.2 / 750.7–751.9 | **821.6 / 789.5–809.8** | Two edited files; heavy user-command path persists |
| Eager code action, `prim_flop_2sync` (fan-out 128) | 511.8 / 467.1–473.6 | **518.3 / 495.6–499.7** | Expensive fallback remains; prior owner classified it non-hot |
| Lazy `aes_reg_top` offer | 29.8 / 21.8–23.5 | **32.8 / 22.4–25.1** | Local offer work can exceed a frame even at fan-out 1 |
| Lazy `aes` offer | 14.2 / 7.9–9.8 | **12.4 / 8.1–9.1** | Still repeated work on a frequent request |
| No-offer `tb.sv` comment | 4.7 / 3.2–3.8 | **6.2 / 3.2–3.5** | Small-file version of the same unnecessary work |
| Ordinary `aes` rename | 165.1 / 133.5–139.4 | **168.7 / 139.3–140.4** | Nine edited files; not explained by output count alone |
| Resolve connect-missing-ports action | 163.9 / 158.2–159.5 | **170.8 / 164.8–165.8** | A click in a lazy client still pays engine work |
| Resolve expand `.*`, 32 connections | 67.8 / 66.9–67.0 | **73.0 / 70.4–70.7** | Preserve as collateral-benefit control for refactor reuse |
| Workspace scan, cold; three fresh sessions | 2691–2712 | **2830–2853** | Mean 2843.0; old/new difference is not attributable to code |
| Workspace scan, warm; three fresh sessions | 1240–1286 | **1322–1344** | Mean 1332.4; cache still leaves substantial work |
| `didOpen pinmux_reg_top.sv` → definition; fresh sessions | 112 / 128–131 | **128.1–130.0** | §46's former 1.6-second open cost remains fixed |
| `didOpen spi_device.sv` → definition; fresh sessions | 15.5 / 13.8–15.1 | **8.7–13.9** | Preserve the already optimized open path |
| `didChange tb.sv` → folding barrier | 1.79 / 0.89–0.97 | **1.05 / 0.65–0.72** | Small-buffer flush is not the bottleneck |
| `didChange` → diagnostics publication | 164.5 / 153.5–160.7 | **158.0 / 156.0–157.6** | About 150 ms is intentional debounce |
| Unblocked definition on `aes` | 0.47 / 0.13–0.17 | **0.36 / 0.05–0.08** | Navigation itself is cheap |
| Unknown-method transport control | 0.63 / 0.09–0.32 | **0.24 / 0.066–0.070** | Cannot explain multi-millisecond or 300 ms blockers |
Idle RSS after workspace scan is **528.0–530.9 MiB cold** and **566.4–573.8 MiB warm**; allocated index-store size is **44.34 MiB** (`du -sk`). These are consistent with take 4's general half-gigabyte resident footprint, not evidence of a new leak. The RSS phase is an idle `ps` observation, not a peak-memory measurement.
### New attribution: code-action cost follows buffer size and work requested internally
The generated file is **1,328,188 bytes**, below the default 4 MiB large-file threshold, so it takes the regular analysis path. These are repeated requests on its initial comment line; **every row returns zero actions**.
| `context.only` | Repeated latency | Interpretation |
|---|---:|---|
| Unspecified: all families | **296.8–311.7 ms** | Full no-offer cost |
| `[]`: no families | **79.4–81.6 ms** | Unconditional lint/fence/config work survives filtering |
| `quickfix` | **79.7–80.1 ms** | Essentially the same base cost |
| `refactor.extract` | **134.6–136.2 ms** | Base plus one text-based selector |
| `refactor.inline` | **134.7–135.4 ms** | Base plus one text-based selector |
| `refactor.rewrite.lucisv.ports` | **134.0–135.5 ms** | Base plus one text-based selector |
| `source.organizeImports` | **133.6–135.8 ms** | Base plus one text-based selector |
The source confirms **five separate full-text parse entry points** on this no-offer path: one in fence protection and one in each of four selectors. The filter experiment is consistent with an approximately 80 ms shared base plus roughly 55 ms per selector. It does **not** split that 80 ms between linting, fence parsing and configuration I/O. That split needs counters/profile data before further optimization.
Size controls, all no-offer comments: `aes_core.sv` repeats **9.6–11.7 ms**; `spi_device.sv` **13.3–17.1 ms**; the generated pinmux file **296.8–311.7 ms**. This is not workspace fan-out: the cursor offers nothing. Unblocked definition on `aes` takes around 0.05–0.08 ms; pipelining it after the generated-file action takes 300.7–304.1 ms.
There is a second independent offer cost. At `aes_reg_top u_reg` in `aes.sv`, requesting only the ports family takes **21.6–21.8 ms and returns zero port actions**, while the other family filters take roughly 0.6–1.2 ms including the common base. The lazy port path still builds plans on the buffer/declaration file and discards their edits. Reusing just the four selectors will not necessarily eliminate this cost; P1c covers it.
### Paired CLI control: the Style difference is largely the new rule's path
`hw/ip`, identical input, default worker count, three independent invocations per cell. Values are **first / range of trials 2–3 in seconds**. Lint exit status is 1 in every row because findings exist.
| Configuration | 0.43.0 now | 0.49.0 now | 0.50.0 now | Findings |
|---|---:|---:|---:|---:|
| Default `check` | 0.42 / 0.39–0.40 | 0.39 / 0.38–0.38 | **0.59 / 0.40–0.40** | 445 on all |
| `--select error,warning,style` | 0.46 / 0.45–0.46 | 0.57 / 0.58–0.59 | **0.58 / 0.56–0.58** | 7734 old; 7751 at 0.49/0.50 |
| Same selection, `--ignore unused-import` | rule absent; not run | 0.45 / 0.45–0.48 | **0.44 / 0.44–0.47** | 7734 |
At 0.50.0 the all-style mean is **0.573 s**, versus **0.450 s** with only `unused-import` disabled: **123 ms, about 21.5% of all-style wall time**. That includes both the rule and the package-census work it enables; it is not an isolated rule-body timer. It brings the current binary back near 0.43.0's all-style mean of 0.457 s. This is stronger evidence than inferring cost from the 17 additional findings. Default/all-style/ignored-rule stdout is byte-identical between current 0.49.0 and 0.50.0 controls. The first 0.50.0 default invocation is an outlier, not a basis for a regression claim.
Current all-style peak RSS is **208.4 MiB**, versus **177.5 MiB** with that rule disabled (maximum of three); treat this as a supporting control, not an allocation profile. Current formatter `--check` with an independently reset cache takes **0.67 / 0.59–0.68 s cold**, **0.69 / 0.61–0.63 s warm**. It reports 1772 would-reformat, 30 unchanged, four failures; warm runs hit only those 30 cached clean files. The cache cannot accelerate the many files requiring formatting. No proposed change should cache unverified output or remove runtime verification to improve this number.
## Causes and implementation plan
Priorities below are recommendations for the implementation agent, not changes made by this analysis. Targets are provisional acceptance goals on this machine and corpus; they are not measured savings or CI timing assertions. Complete one stage, measure it, then decide whether its next stage is justified.
### P0 — Make the performance evidence trustworthy
**Cause.** The committed harness is useful but some rows do not mean what their names imply. `phases_new.py::phase_refactor` sends `codeAction/resolve` for every action without an `edit`, including command-only extract/inline offers. Dispatch sends those to the ports resolver, which rejects offers without its data. Their tiny times do not measure extraction or inlining. `Session.ms` discards the response, so an error can look like a fast success. `phase_rss` puts idle RSS in a field called `ms`; it is neither latency nor peak memory. `sweep.sh::run_cell` deletes the format cache once before the three “cold” tries, making tries 2–3 warm.
**Work.** Preserve the existing historical raw rows. Add explicit units, request result/error status, client capability shape, exact result counts and normalized edit/warning fingerprints to new records. Route edit-bearing offers to resolve and command-bearing offers to a separate execute-command scenario. Capture the server's `workspace/applyEdit` payload as the edit-computation boundary without applying it to the corpus. Reply `applied: false` with a benchmark-capture reason; record that intentional client rejection separately from an engine refusal or computation error. Count created files, edits, refusals and warnings; do not benchmark an error as a successful operation. Distinguish scan completion from first-useful-answer latency and distinguish fresh processes from repeated requests. Reset only the dedicated scratch format cache before *each* cold try; explicitly prime warm rows.
**Files and contracts.** `tools/perf/{bench.py,phases_new.py,lspclient.py,harness.py,sweep.sh,sweeptable.py,README.md}`. Keep old log readers compatible or version the schema. No production change is needed. Preserve request framing and exact result validation. Record guard failures as failures.
**Acceptance.** A deliberately rejected request is recorded as an error. Inline/extract execution rows demonstrably observe a command and an apply-edit payload, or an expected refusal. Cold formatter rows have zero cache hits independently. RSS and peak RSS use separate fields with explicit units. Reproduce this analysis's baseline before interpreting a speedup.
### P1 — Remove repeated work from code-action discovery
This is first because it is a frequent editor request, and the serial request loop passes its delay to navigation queued behind it.
**Confirmed causes.**
- `server/dispatch.rs` constructs `LintRun` and calls `code_action::code_actions` before checking action-family filters. `code_action.rs::code_actions` calls `lint::fixable` unconditionally. Even `context.only: []` or a refactor-only request pays for lint and fence discovery.
- `lint.rs::fixable` reruns the selected lint rules and calls `vlog_formatter::fence::protected_regions`. That function parses the whole text again, even when there is no fix to protect.
- `inline_site`, `extract_site`, `imported_packages` and `port_action_modules` each accept text and independently parse it. The server already holds text, tokens, tree, diagnostics and semantics from the same document revision.
- The lazy ports offer invokes `port_actions` on one or two source files and throws away its edits. It avoids workspace fan-out, but it still computes more than a menu needs. Import offers compute exact removal/sort counts using their engine. Treat these costs separately from the simple selectors.
**P1a: skip irrelevant work.** Before config discovery, lint execution and fence discovery, check whether quick fixes or `source.fixAll.lucisv` are wanted. Return immediately for an empty `only` filter. For requests that do want fixes, find whether any candidate carries an applicable fix before computing fence regions. Preserve kind-prefix semantics, fixes spanning the cursor, fix-all behavior and existing action ordering. An empty cursor range must not disable extraction: extraction currently supports an item selected by a cursor.
**P1b: reuse unchanged-buffer work.** Introduce additive refactor selectors over an existing parse plus its matching diagnostics; retain text-based wrappers for standalone consumers and parity tests. Have all offer families read `Document`'s current parse. Check parse diagnostics and large-file mode exactly as the old paths do. If even AST walks are expensive on generated files, derive only the necessary item/instance/import interval lookup once per document revision; do not introduce a general incremental parser for this step.
For fences, first retain the existing text-only authority and memoize its result per document revision. This respects the explicit contract in `docs/features/shared-fence-filter/README.md`: accepting arbitrary caller trees was deliberately avoided. Compute it only if a fix needs it. A future parsed-input API requires an explicit amendment to that contract, source/tree provenance and parity with the text API on malformed buffers and every fence shape. Never substitute formatter `collect` alone: the scan backstop is part of protection.
Do not reuse published diagnostics blindly as fix results: `tab_width`, rule options, inline/external waivers and workspace-dependent lints affect the answer. If lint-result caching remains necessary after the first measurements, key it by document revision, effective lint/format settings, waiver contents and workspace generation; invalidate on each relevant change. Fence caching itself depends only on exact source revision.
**P1c: offer predicates instead of throwaway edits.** Only if ports/import offers still dominate, expose engine-owned availability/count queries using parsed inputs and the necessary declaration facts. Keep refusal logic in `vlog_refactor`; do not grow an independent server-side refactoring engine. Resolve/execute must revalidate against current document and workspace state. Preserve ambiguous declarations, refusal text and promised counts; do not promise exact counts that the reduced query cannot establish.
**Files and contracts.** Server: `server/dispatch.rs`, `code_action.rs`, `lint.rs`, `state.rs`, `ports.rs`, `imports.rs`, `extract.rs`, `inline_module.rs`. Engine: selectors in `vlog_refactor/src/{ports/,imports.rs,extract/,inline/,lib.rs}` as applicable. Formatter `fence.rs` only if explicitly needed. Follow `topo.md` §1.2's request-selector parity and §3's shared ownership. `state.rs` already exceeds the preferred size: put new responsibilities in a small module; coordinate with TODO §55 rather than adding another large subsystem there.
**Validation and targets.** Pin old/new offer equality at every sampled cursor/range, including no-offer comments, parse errors, CRLF, UTF-16 positions, unsaved edits, untitled and large buffers, action filters, fence insertions, waivers, config changes and index refresh. Verify “no additional parse for repeated offers” with work counters, not a brittle stopwatch assertion. Proposed timing goals: ordinary repeated lazy offers below 5 ms; the current slow `aes_reg_top` offer below 10 ms; no-offer generated-file cursor below 16 ms on an unchanged buffer. Track the first request after a change separately, and measure pipelined definition latency. If a goal is missed, identify the measured remaining stage before proceeding.
### P2 — Reuse refactoring analysis while preserving whole-edit verification
**Confirmed repeated work.** `rename.rs` selects and materializes source strings. `vlog_refactor::Scope::build` builds an index from them, parsing/analyzing their text. `Scope::analysis` parses/analyzes the same input again on demand. `check::rebuilt_index` rebuilds an index over all selected sources after editing only a few, and `check::verify` parses/analyzes every watched file again, including untouched ones. Cross-file resolution genuinely must be checked again; unchanged syntax/local semantics need not be recomputed just to perform that check.
**Selection hypothesis requiring measurement.** `state.rs::fan_out_of` searches *all* matching workspace and hierarchical declarations for both old and new names, then includes their containers and instantiation/reference sites. A common internal name such as `state_q` can therefore select much more input than the two output files suggest. `hierarchical_declarations` scans the internal surface. The source confirms this behavior, but this round does not attribute percentages of rename time to selection, parsing, resolution or verification. Do not describe the entire 0.8 seconds as a slow hierarchical lookup.
**P2a: measure stage and work counts.** Record selector time; selected paths and total bytes; reason each path was included; ambiguity fallback; initial index build; number of parses/analyses; occurrence collection; before/after verification; serialization; peak memory. Compare `state_q`, unique internal names, common `clk`/`rst_n`, module `aes`, existing/conflicting new names, unresolved new-name uses and all-sources fallback. Capture the exact selected set so reduced work cannot masquerade as a faster correct answer.
**P2b: one input analysis per file.** Give a request-local scope a reusable parsed/semantic bundle from which it can derive `FileFacts` and analyze occurrences. Existing `FileFacts::from_analysis` is the starting point. Keep source text ownership and identity explicit. First eliminate duplicate work *inside the scope*; importing live server documents and index state is a separate step, because file IDs and the subset's name-resolution universe may differ. An additive prepared-input API must retain the current public text API and its answer/refusal behavior. Avoid a whole-workspace AST cache: current idle memory already warrants restraint.
**P2c: reuse unchanged post-edit inputs.** Construct the after-index from unchanged facts plus newly analyzed edited files. For untouched watched files, reuse local semantics and recompute their external resolutions against the after-index; for changed files, build one new parse/analysis and reuse it for after-facts and verification. Measure the clone/merge/remap cost: an incremental-looking API may still rebuild global tables. Preserve path-based identity and span-shift mapping when file IDs change. Token identity, parse-diagnostic checks, comments/attributes and before/after resolution comparison all remain mandatory.
**P2d: narrow only with a proof.** After reuse is measured, consider exact-name postings to avoid scanning unrelated declarations without changing the selected set. Further narrowing must preserve every edit, warning, ambiguous-use refusal, unresolved new-name capture and unsaved-buffer contribution. Compare the optimized scope with the whole-scope engine on generated/adversarial cases. Do not remove the all-sources fallback or common-name witnesses merely because they are expensive.
**Files and contracts.** `lucisv_server/src/{rename.rs,state.rs}`, `vlog_refactor/src/{scope.rs,rename/,check/,lib.rs}`, `vlog_semantic/src/workspace/{record.rs,index.rs,update.rs,mod.rs}` and actual merge owners as needed. Inspect current paths before assigning ownership. Preserve `topo.md` §1.2/§3's `collect_occurrences`, source-superset, `FileId`, `FileFacts`, ambiguity and name-span contracts. New persisted fields require a `FACTS_FORMAT` bump; a transient request bundle does not.
**Correctness prerequisite.** Topology open handshake **33** already records that `module_sources` can miss transitive hierarchical users such as `wrap.u_S.x`. It is specifically an inline/refactoring refusal gap, not proof that the measured rename has this bug. Resolve and test it before sharing a narrower source-selector implementation with inline/ports. Include multi-level hierarchy, generated scopes, interface/package/class names, macros, duplicate modules and unsaved references. Additional necessary files may increase time; report that as correctness work rather than hiding it.
**Acceptance and targets.** Identical normalized edits, warnings and refusal sentences to the original whole-scope engine on the parity suite; every valid edit still passes both verifiers. First target: at least 2× lower repeated tail-rename time and no ordinary-rename regression; stretch target below 200 ms only if stage measurements support it. Record selected/watched/edited file counts and bytes beside timing. The queued navigation target follows the same reduction. A faster partial edit is a failure.
### P3 — Eliminate the extra CLI package-census parse
**Cause.** `lucisv/src/lint.rs::Census::of` calls `vlog_linter::package_exports(path, src)` for every job whenever `unused-import` is enabled. `vlog_linter/src/interfaces.rs::package_exports` constructs a one-file `WorkspaceIndex`, including lex/parse/analysis, even for files declaring no package. The census then separately constructs `ParsedSource` for interface rules; the actual lint pass later parses again. This is concrete duplicated whole-file work. Finding only a few extra violations does not imply that computing the rule should be cheap: all input files are examined.
**Work.** Add a package-export query over the census's existing parsed input, sharing semantic/fact extraction only where necessary. Use the parsed AST to skip package-index work for files without package declarations; never use a textual `contains("package")` correctness gate. Preserve duplicate/unknown package treatment, nested declarations, malformed source and the conservative handling of re-export chains. Keep the shared linter/refactor import-use judgment; do not implement a different import resolver in the CLI. Determine whether the census can share its parse with interface extraction before considering retention into the later lint phase. Retaining every project's AST may trade a small wall-time gain for unacceptable memory, so measure peak RSS at each step.
**Files and contracts.** `crates/lucisv/src/lint.rs`, `crates/vlog_linter/src/{interfaces.rs,lib.rs}`; semantic fact extraction only if needed, by an additive API. The CLI has no direct semantic production dependency; keep that topology. The same package uncertainty must produce the same lint silence, and lint findings/fixes/waivers/exit codes remain stable.
**Acceptance and targets.** Run default, all-style, and all-style minus `unused-import` on the same binary, then compare paired revisions with matching rules and files. Default results must remain byte-identical; all-style optimization must retain `unused-import`'s findings. Aim to remove at least half the measured incremental all-style cost of this rule with no material default-time or peak-memory regression. Disabling the rule is only the attribution control, not the proposed optimization.
### P4 — Reduce startup work and memory after interactive costs are addressed
**Cause supported by source.** A warm index still reads source text to hash it, decodes encoded facts, rebuilds/merges query tables, constructs completion/include tables and refreshes open-buffer overlays. `IndexCache` retains encoded facts alongside the decoded workspace records; cold scans encode/append records and whole-scan completion compacts the store. These explain why a warm cache is not a near-zero-cost startup; their individual time/memory shares are unmeasured. Current scan notes also show a 124-file default scan preceding the final configured scope; explicit depth 0 pays for it and then ends with one file.
**Work order.** Instrument discovery/config wait, file read/hash, fact decoding, merging, completion/include construction, overlay refresh, cache write/compaction, and time to first useful navigation answer. Use the existing ignored scan/prelude/publish probes where applicable. Measure 1/10/100 open buffers and requests arriving during a scan, not just final idle time. If the default scan is routinely discarded, stage the initial scan until configuration arrives, with a bounded fallback for clients that never answer; keep rootless and scope precedence behavior intact.
Then optimize the dominant measured stage: avoid unnecessary compaction on unchanged stores; shorten temporary source/encoded-buffer lifetimes; reduce redundant transient copies and repeated full merges; consider representation changes only after profiling shows allocation/decoding cost. Changes must preserve interrupted-store recovery and a coherent index/candidate/include prefix. Preserve content-based freshness checks rather than replacing them with mtime/size-only cache hits. Do not introduce mmap, compression, unsafe code, another dependency or parser worker parallelism without a separate measured case and contract review.
**Files and contracts.** `server/index.rs`, `state.rs`, `index_cache.rs`, `candidates.rs`, `includes.rs`, and semantic build/facts owners. This shares files/contracts with P1/P2. Preserve scope ladder, live overlays, incremental/fresh-build fingerprint equality, corrupt-store recovery, version rejection, `FACTS_FORMAT` compatibility and the 16 MiB parser stack on any new parsing thread.
**Acceptance and targets.** Suggested goals: warm workspace settled time below 1 second, cold below 2.3 seconds, and at least 15% lower idle RSS with equivalent indexed content. Measure peak RSS too. These are investigation goals, not simultaneous promised savings; reject memory-for-speed trades that are not recorded and justified. Definition during scan should remain responsive and never observe mismatched published tables. Recheck file-open latency so the already successful §46 fix stays intact.
### P5 — Conditional follow-ups, not the first implementation
If first-after-edit latency remains outside the interactive budget after P1, remeasure `Document::new` and the ignored `breaking_down_one_flushed_keystroke` probe on 1k/10k generated files and actual large RTL. Distinguish parse time from the clone included in the existing parse measurement. The historical 79% lex/parse share is a lead to remeasure, not a current profile. A parser/token ownership change reaches six crates, comments/trivia consumers, exhaustive AST walkers and recursion guarantees in `topo.md`; it should not be bundled into an offer-gating patch.
If expensive user commands still block navigation after P2, separately design cancellable computation over immutable, revision-tagged workspace snapshots. Revalidate all document/workspace versions before returning edits; do not hold a workspace lock during heavy work. The synchronous transport, cancellation queue and stack-size contracts make this a larger architectural project. Measure queue delay before choosing it. Do not begin with an async runtime or thread-pool rewrite.
The eager-client path remains monitored because it is expensive, but previous owner guidance classified it as non-hot. Preserve eager compatibility and collect its timings as a collateral benefit of P2; do not trade lazy-client latency or correctness for it. Sub-millisecond navigation, the intentional 150 ms diagnostic debounce, and the fixed 0.50.0 format-cache option key are regression controls, not present optimization targets. Never remove formatter token-equivalence or convergence verification to improve throughput.
## Sequencing, ownership and implementation gates
Implement serially: **P0 → P1a → P1b → measure → P1c if needed → P2a → P2b/P2c → P2d only with proof → P3 → P4 if justified**. P5 requires a new measured decision. P3 may be chosen ahead of P2 if CLI throughput is the product priority; it has a smaller implementation surface.
Do not dispatch the server/refactor/parser/semantic work as independent lanes. `docs/topo.md` records direct dependencies, shared `state.rs` ownership and the open transitive-use handshake; P1–P4 have several of these collisions. If work is later delegated, the lead must first name exact files/contracts and follow the repository's isolated-worktree/QA process. No agents or implementation work were dispatched by this analysis.
For each selected stage, create its feature README with Goal, Assumptions, Handshakes, Status/TODO, Work log, QA log and reserved Review. Update the tracking file with its baseline before edits, after measurements at the exact candidate commit, result parity, resource use and verdict. Do not mark an estimate as an improvement.
Run affected correctness suites per stage, then the repository's required format, clippy and workspace test gates at integration, plus formatter snapshot/idempotency and corpus checks when the changed contract reaches them. All suites/sweeps go through `tools/guard.sh -m 8 -t 1800`; no Cargo build or other benchmark runs during timed sessions. Keep the corpus read-only and retain exact failure/outcome sets, not only aggregate counts. Update `docs/topo.md` when an interface changes and `docs/perf/README.md` with accepted measured results. This analysis changes documentation and measurement evidence only; it does not mark implementation backlog items complete.
## Source and contract references for the implementation agent
| Cause or boundary | Current source / documentation |
|---|---|
| Action dispatch before kind filters | [dispatch.rs](../crates/lucisv_server/src/server/dispatch.rs), `CodeActionRequest` branch; [code_action.rs](../crates/lucisv_server/src/code_action.rs), `code_actions` |
| Repeated lint and fence parse | [server lint.rs](../crates/lucisv_server/src/lint.rs), `fixable`; [fence.rs](../crates/vlog_formatter/src/fence.rs), `protected_regions`; [shared-fence-filter contract](features/shared-fence-filter/README.md) |
| Four text-based selectors | [inline/mod.rs](../crates/vlog_refactor/src/inline/mod.rs), [extract/mod.rs](../crates/vlog_refactor/src/extract/mod.rs), [imports.rs](../crates/vlog_refactor/src/imports.rs), [ports/mod.rs](../crates/vlog_refactor/src/ports/mod.rs) |
| Lazy offers computing engine edits | [server ports.rs](../crates/lucisv_server/src/ports.rs), `offers`; [server imports.rs](../crates/lucisv_server/src/imports.rs), `offers`; [engine imports.rs](../crates/vlog_refactor/src/imports.rs), `organize_counts` |
| Broad rename selection | [state.rs](../crates/lucisv_server/src/state.rs), `rename_sources` / `fan_out_of`; [workspace/index.rs](../crates/vlog_semantic/src/workspace/index.rs), `hierarchical_declarations` |
| Rebuilt refactoring analysis | [scope.rs](../crates/vlog_refactor/src/scope.rs), `build` / `analysis`; [check/mod.rs](../crates/vlog_refactor/src/check/mod.rs), `verify` / `rebuilt_index` |
| CLI package census | [CLI lint.rs](../crates/lucisv/src/lint.rs), `Census::of`; [linter interfaces.rs](../crates/vlog_linter/src/interfaces.rs), `package_exports` |
| Warm-cache work | [index_cache.rs](../crates/lucisv_server/src/index_cache.rs); [state.rs](../crates/lucisv_server/src/state.rs), scan preparation / `scan_step` / `finish_whole_scan`; [server/index.rs](../crates/lucisv_server/src/server/index.rs) |
| Shared ownership and handshake 33 | [topo.md](topo.md), §1.2, §2.9 and §3; [repository analysis](repository-analysis.md) |
| Previous data and measurement methods | [performance_take4.md](performance_take4.md), [performance_take3.md](performance_take3.md), [perf README](perf/README.md), [harness README](../tools/perf/README.md) |