You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed on wt/e-lexer @7a2a1e5e (rubash#155 主热点;#130 的 onegrp/nvm 形态随之消除).
Fix: admission-whitelist fast path in tokenize_with_heredocs — while the previous pass joined via the token-level brace-group signal (which proves quotes/comsub/compound were all closed), a physical line with no quote/escape/expansion/brace/paren/comment/heredoc bytes (' " $ { } ( ) # < \) and noposixsubstring skips the O(buffer) re-tokenize and the three has_unclosed_* full scans entirely. GNU owner: parse.y:3557 read_token streaming model. All intermediate results were already discarded by the joincontinue`; the accepted stream still comes from the unchanged final full pass, so outputs are byte-identical by construction.
Numbers (release, median-3, -n):
onegrp
before
after
1000
896ms
73ms
2000
3588ms
95ms
4000
14263ms
120ms (119x, GNU 9.7ms)
8000
—
205ms (net-of-startup scaling linear)
fb/plain/blk unchanged.
Verification: 452-file completions-core -n iso matrix 452/452 identical before/after; #130 four shapes + rich/comsub/case/unclosed/CRLF fixtures byte-identical before/after (run + -n + stdin); WSL GNU 5.3.0 stdout+rc identical; lib tests 458 green (5 new). Artifacts: target/issue-suites/results/e-lexer/ (shapes/, rubash-before.exe, matrix-diff.txt) in the wt/e-lexer worktree.
Remaining (this issue's secondary cause, root cause corrected): the nst nested-depth shape is NOT matching_brace_group_end — the folded-group path (brace_command.rs:29) bypasses it. Measured: nst100 one-line=130ms vs two-line=506ms (release); the near-cubic cost comes from per-{ skip_brace-to-EOF scans inside a single join pass (scanner.rs { branch), summed over the fold-parse recursion levels — needs a resumable skip_brace scanner restructure (separate task).
Activity
caomengxuan666 commentedon Sep 26, 2026
Fixed on wt/e-lexer @7a2a1e5e (rubash#155 主热点;#130 的 onegrp/nvm 形态随之消除).
Fix: admission-whitelist fast path in
tokenize_with_heredocs— while the previous pass joined via the token-level brace-group signal (which proves quotes/comsub/compound were all closed), a physical line with no quote/escape/expansion/brace/paren/comment/heredoc bytes (' "$ { } ( ) # < \) and noposixsubstring skips the O(buffer) re-tokenize and the three has_unclosed_* full scans entirely. GNU owner: parse.y:3557 read_token streaming model. All intermediate results were already discarded by the joincontinue`; the accepted stream still comes from the unchanged final full pass, so outputs are byte-identical by construction.Numbers (release, median-3,
-n):fb/plain/blk unchanged.
Verification: 452-file completions-core
-niso matrix 452/452 identical before/after; #130 four shapes + rich/comsub/case/unclosed/CRLF fixtures byte-identical before/after (run +-n+ stdin); WSL GNU 5.3.0 stdout+rc identical; lib tests 458 green (5 new). Artifacts:target/issue-suites/results/e-lexer/(shapes/, rubash-before.exe, matrix-diff.txt) in the wt/e-lexer worktree.Remaining (this issue's secondary cause, root cause corrected): the nst nested-depth shape is NOT matching_brace_group_end — the folded-group path (brace_command.rs:29) bypasses it. Measured: nst100 one-line=130ms vs two-line=506ms (release); the near-cubic cost comes from per-
{skip_brace-to-EOF scans inside a single join pass (scanner.rs{branch), summed over the fold-parse recursion levels — needs a resumable skip_brace scanner restructure (separate task).caomengxuan666 commentedon Sep 26, 2026
已在 cbfbebd 落地(7a2a1e5e):准入白名单快路径(rubash#117 规则——白名单而非症状黑名单)——上一轮 join 由 token 级 brace-group 信号触发且新行不含任何可改变判定的字节时,整段跳过 O(缓冲区) 重扫;输出按构造字节不变(中间产物本就被丢弃)。nvm.sh 形态 14263ms → 120ms(119×,线性,GNU 9.7ms,验收 4× 裕量);before/after 二进制输出字节全同(run/-n/stdin 交互 × 四形态 fixture);452 文件 -n iso 矩阵 452/452 全同;461 lib 测试(5 新)。残余:嵌套深度维度(nst)根因已纠正并另单跟踪(真因=单遍内逐 { 的 skip_brace 扫到 EOF 在折叠解析递归各层求和的近三次方,需 skip_brace 可续传重构)。#131 的准入模式可复用性分析见评论区。
perf-suite: dedicated benchmark harness + first baseline (24 probes, …
corpus3 lane: git test harness / FFmpeg + OpenSSH configure / bash-it…
perf(lexer): recoverable comsub residual state + per-line checkpoint …
perf(lexer): park/resume for has_unclosed_quotes + has_unclosed_compo…
fix(pipeline): Windows broken-pipe kill window arms only after the do…