Skip to content

perf(bash-command): whitelist fast render for literal commands - #981

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/bash-command-fastrender
Oct 21, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/bash-command-fastrender

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

set_current_command rendered the full command text per command (~27% of samples, gdb-confirmed). For all-literal words with raw==word and no expandable structure/compound shape, the full pipeline provably returns words.join(" "): assignments/redirects absent by admission, per-word output is metadata.raw (== word), canonicalize_comsub_spans is identity without $(, single-space join. Zero unsafe (owned Strings only) — no pointer/lifetime tracking, so no UAF class. Contract test pins fast==slow full-node Debug output incl. dispatch verbs. Tests: lib 680 + cli 460 (release) + fuzz 2 (debug) green. [ 1 -eq 2 ] 20k: 155->127ms (1.6x->1.3x).

@caomengxuan666
caomengxuan666 force-pushed the fix/bash-command-fastrender branch from aef8341 to bab2917 Compare October 21, 2026 16:30
@caomengxuan666
caomengxuan666 merged commit 29c8acb into master Oct 21, 2026
6 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/bash-command-fastrender branch October 30, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant