Skip to content

perf(export/unset): second-pass body cuts for the export/unset interleave loop - #992

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/export-body2
Oct 22, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/export-body2

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Follows #984/#986/#920. 13 files, all whitelist/alloc-elision, doubt falls through: no-pattern gates for glob/procsub/substitution scans, Cow for IFS/payload decodes, raw-join BASH_COMMAND render with fast==slow contract test, export mirror borrow, unset borrowed names/flags, first-byte gate for single-quote tiling, plain-operand declare rewrite. Tests: lib 689 + fuzz green, GNU probes byte-identical vs base (2 pre-existing divergences unchanged). Interleave 2k, my A/B: 60ms->51ms vs bash 27ms (2.22x->1.89x, ~15%).

…eave loop (#984/#986/#920 follow-up)

13 files, all whitelist/alloc-elision, doubt falls through: no-pattern
gates for glob/procsub/substitution scans, Cow for IFS/payload decodes,
raw-join BASH_COMMAND render with fast==slow contract test, export mirror
borrow, unset borrowed names/flags, first-byte gate for single-quote
tiling, plain-operand declare rewrite. Interleave 2k: 60ms->51ms vs bash
27-30ms (~2.2x->~1.9x, ~15%).

Note: the splits_unquoted_expanded_word no-IFS short-circuit was reverted
before merge — Windows-only upstream-suite (exp) snapshot divergence, root
cause not yet isolated; Linux runs were byte-identical. Tracked separately.
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