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
Landed (8 changes, 13 files): Rc threading of diagnostic/source text through compound-body re-parses (was 272MB of whole-script clones on nvm -n — ~1500 nested body parses each cloned the full 173KB); duplicate comsub scan eliminated in the join loop; admission gates + false-answer caches on the comsub/compound/${ join scans; per-token ( depth scan gated on a literal $(printf "%s\nn" "$as_dir" | sed "s/'/'\\''/g";; #'(. Reproducer: target/perf4/q5.sh = the 44-line as_fn_mkdir_p function + echo ok + echo ok2 prefixed with # set -o posix — GNU bash -n rc=0; the grouped driver's scan keeps the group open through all 46 lines.
2. The tokenize-based keyword-stack stage of stdin_source_needs_more keeps groups open on if/case false positives in the same stretch.
With those fixed the groups stay small and the incremental machinery landed this round is already linear. Full decomposition in docs/PERF-BASELINE.md perf4 round.
Correction to the previous comment (shell command-substitution ate a phrase): the fourth landed change reads "per-token comsub-depth scan gated on a literal dollar-paren byte pair" — i.e. the parse loop's unclosed_command_substitution_depth consult on every word token is now admitted on the presence of the two bytes $(; and the quoted reproducer is configure line 337, the m4sh sed-quoting arm inside as_fn_mkdir_p. Full details, evidence and the honest acceptance scorecard are in docs/PERF-BASELINE.md, perf4 round section.
perf4 continuation recovered (master ae7f60f): the history driver's inline gather was re-expanding + re-tokenizing the whole accumulated pending per line (configure-head1374: 13.3MB expand/13.3MB tokenize on a 38KB script). It now feeds through the sourcefix group feeder (GNU parse.y:3557 read_token streaming / evalfile.c per-command reads / parse.y:3249 alias-per-token with the table frozen during gather).
Numbers (debug, A/B vs clean master, medians): configure-head1374-n 2478ms -> 656ms (-74%), nvm-parse-n 2395 -> 1890 (-21%), flat8000-n 397 -> 303 (-24%), nvm-load -8%. GNU-diff matrix m1-m4 byte-identical; new m5 group-boundary probe (history list per group across multiline quotes/heredocs/function bodies/case/if/&&/continuations/live-table aliases incl. alias-opens-quote) master==lane byte-identical; real configure corpus 106/106 group boundaries match.
Remaining (recorded for the next round): configure-full -n still has the completeness-test half's quadratic — needs the resumable scanner state (exactly what wt10/contperf is building for #292); #242c hot-path -25% not reached (distributed expansion mechanism); nvm-parse-n at 105x vs GNU's 18ms.
wt65/p241 round (2026-10-04, base 5f7b1ab): honest no-go on both sanctioned attacks — inline-section extension ceiling 3.13ms (1.7%; the historic 91-108ms 'two-pass cost' was nesting-double-counted inclusive sum), Rc token store 3.03-3.35ms (1.8%, unchanged from parse4). Tree unchanged.
Re-baseline: the seven post-parse4 fix commits made the tree FASTER — nvm -n 230.8→183.8ms quiet (-17%), nvm load 322.8→61.1ms (-81%), configure-head1374 1081.7→67.8ms (parse4's figure was an outlier).
Redirect (the recorded next target): the nvm -n wall is now 46% lextok (84.7ms — join/re-lex + parked scanners + finish_word_token) = the #281/#292 incremental-reader family (continuation.rs-adjacent), not the parse layer. #241's remaining headroom lives there; next perf lane should attack #281's batch tokenizer. Artifacts: rubash-wt-p241/target/p241/ (leaf timers, base binary preserved).
Activity
docs: task board - perfsuite recovered, perffix dispatched for #241-243
parse/acceptance: } word rules + stray ;; separators are errors; perf…
caomengxuan666 commentedon Sep 27, 2026
部分修复已合入 master(commit dec78e74):
{/}}词规则(syntax.h:29-30 + parse.y:3168/3174/5899——GNU 一样报 command not found)与游离 ;;/;&/;;& 分隔符类(parse.y:3711 SEMI_SEMI、列表文法 :1264-1290)已修,35 形状矩阵 34 字节一致(1 个为既有后台输出序差异)。剖析结论:重词法化已排除嫌疑(AST 一次性构建),热成本是合法展开工作;诊断 DFA 白名单省 ~5%。剩余:configure:5345 与 nst2 深度≥3 两项确认为 brace_scan_cache/skip_brace 族(与已修的深度≥4 洞同族不同形状),解析吞吐残余(nvm -n 852x 等)待增量读取器深水项。docs: task board - perffix recovered (#243 closed, #241 partial)
perf(#241 #242): allocation-free shopt consult, literal-word fast pat…
comsub/lexer/trace: residual sweep #274 #275 #276 #278
caomengxuan666 commentedon Sep 28, 2026
perf3 round (wt7/perf3 @ c17b6cea) progress on the parse-throughput family — re-scoped with numbers, stays OPEN:
${\u00a0scans)Landed: batch-tokenizer complete-command-boundary checkpoint (tokenize_plain re-lex 0.98s→~0.5s on nvm -n) + brace_scan.rs
${-arm zero-copy scans (the mod.rs-side twin of continuation.rs's O(n\u00b2) copies). nvm -n decomposition at base: 4.54s whole-input prescan + 5.33s per-line has_unclosed_quotes (both continuation.rs, captain-exclusive — proposed diff in docs/PERF-BASELINE.md perf3 round) + 0.98s tokenize + ~1.6s parse/reader. The <60x target needs the captain's fix plus the ~1.6s parse/reader phase (GNU: 19ms total). Verification: byte-identical GNU matrices (multi-line logical-line suites), regression 24/24.perf(#241 #242 #281): walker ${-arm inline fragment resolution, patte…
source: park the batch-tokenizer pipeline per line in the group reade…
caomengxuan666 commentedon Sep 28, 2026
perf4 round (wt8/perf4) progress on the parse-throughput family — re-scoped with numbers, stays OPEN:
Landed (8 changes, 13 files): Rc threading of diagnostic/source text through compound-body re-parses (was 272MB of whole-script clones on nvm -n — ~1500 nested body parses each cloned the full 173KB); duplicate comsub scan eliminated in the join loop; admission gates + false-answer caches on the comsub/compound/${ join scans; per-token
( depth scan gated on a literal$(printf "%s\nn" "$as_dir" | sed "s/'/'\\''/g";; #'(. Reproducer:target/perf4/q5.sh= the 44-line as_fn_mkdir_p function +echo ok+echo ok2prefixed with# set -o posix— GNUbash -nrc=0; the grouped driver's scan keeps the group open through all 46 lines.2. The tokenize-based keyword-stack stage of
stdin_source_needs_morekeeps groups open on if/case false positives in the same stretch.With those fixed the groups stay small and the incremental machinery landed this round is already linear. Full decomposition in docs/PERF-BASELINE.md perf4 round.
caomengxuan666 commentedon Sep 28, 2026
Correction to the previous comment (shell command-substitution ate a phrase): the fourth landed change reads "per-token comsub-depth scan gated on a literal dollar-paren byte pair" — i.e. the parse loop's unclosed_command_substitution_depth consult on every word token is now admitted on the presence of the two bytes
$(; and the quoted reproducer is configure line 337, the m4sh sed-quoting arm inside as_fn_mkdir_p. Full details, evidence and the honest acceptance scorecard are in docs/PERF-BASELINE.md, perf4 round section.caomengxuan666 commentedon Sep 28, 2026
perf4 continuation recovered (master ae7f60f): the history driver's inline gather was re-expanding + re-tokenizing the whole accumulated pending per line (configure-head1374: 13.3MB expand/13.3MB tokenize on a 38KB script). It now feeds through the sourcefix group feeder (GNU parse.y:3557 read_token streaming / evalfile.c per-command reads / parse.y:3249 alias-per-token with the table frozen during gather).
Numbers (debug, A/B vs clean master, medians): configure-head1374-n 2478ms -> 656ms (-74%), nvm-parse-n 2395 -> 1890 (-21%), flat8000-n 397 -> 303 (-24%), nvm-load -8%. GNU-diff matrix m1-m4 byte-identical; new m5 group-boundary probe (history list per group across multiline quotes/heredocs/function bodies/case/if/&&/continuations/live-table aliases incl. alias-opens-quote) master==lane byte-identical; real configure corpus 106/106 group boundaries match.
Remaining (recorded for the next round): configure-full -n still has the completeness-test half's quadratic — needs the resumable scanner state (exactly what wt10/contperf is building for #292); #242c hot-path -25% not reached (distributed expansion mechanism); nvm-parse-n at 105x vs GNU's 18ms.
perf(lexer): recoverable comsub residual state + per-line checkpoint …
perf(#241): nvm parse/load -41%/-32% wall: Rc source threading, fold …
perf(#241): parse-time word scans for parameter/arithmetic/brace/tilde
perf(#241 phase 2): parse-time comsub and word-quote word scans move to
caomengxuan666 commentedon Oct 3, 2026
wt65/p241 round (2026-10-04, base 5f7b1ab): honest no-go on both sanctioned attacks — inline-section extension ceiling 3.13ms (1.7%; the historic 91-108ms 'two-pass cost' was nesting-double-counted inclusive sum), Rc token store 3.03-3.35ms (1.8%, unchanged from parse4). Tree unchanged.
Re-baseline: the seven post-parse4 fix commits made the tree FASTER — nvm -n 230.8→183.8ms quiet (-17%), nvm load 322.8→61.1ms (-81%), configure-head1374 1081.7→67.8ms (parse4's figure was an outlier).
Redirect (the recorded next target): the nvm -n wall is now 46%
lextok(84.7ms — join/re-lex + parked scanners + finish_word_token) = the #281/#292 incremental-reader family (continuation.rs-adjacent), not the parse layer. #241's remaining headroom lives there; next perf lane should attack #281's batch tokenizer. Artifacts: rubash-wt-p241/target/p241/ (leaf timers, base binary preserved).perf(lexer): admission-gate the per-line backslash-continuation scan …
docs(readme): evidence-first restructure with cross-platform identity…