Repository navigation
perf(bash-command): whitelist fast render for literal commands - #981
Merged
Merged
Conversation
caomengxuan666
force-pushed
the
fix/bash-command-fastrender
branch
from
October 21, 2026 16:30
aef8341 to
bab2917
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).