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
{{ message }}
Repository navigation
[perf] Function call with args+locals ~3x slower than GNU #1121
P3-low低:优化、文档、远期规划,有机会再做bugSomething isn't workinggnu-baselineTracked by the GNU Bash 5.3.0 true-baseline ledgerperformancePerformance regression or improvement
[perf] Function call with args+locals ~3x slower than GNU (empty call only 1.75x)
f(){ local a=$1 b=$2 c=$3; :; }
t0=$(date +%s%N);for((i=0;i<10000;i++));do f x y z;done; t1=$(date +%s%N)# GNU bash 5.3: ~205ms# niu: ~647ms (re-run 3.28x; empty `f(){ :; }` is only 1.75x)
Cost is in arg/local binding, not the call frame alone. Median of repeated runs on the same machine (Termux aarch64). Borderline over a 3x bar but reproduced twice.
Env: niubash 1.4.4 / rubash engine (master ~2026-10), GNU bash 5.3.20 aarch64-linux-android as oracle.
Fixed by #1181 (2026-10-22/23 bulk GNU-parity wave): landed as a dedicated commit referencing this issue, covered by the audit differential suite (tests/fixtures/audit/), and re-verified byte-for-byte against a GNU bash 5.3.20 oracle; master CI (ff1a555) runs the suite green.
Closing now to restore the linkage: GitHub's closing-reference parser only honored the first entry of #1181's long Fixes list, so this stayed open after the fix landed. If anything still reproduces on current master, reopen with a transcript and it returns to the fix queue.
P3-low低:优化、文档、远期规划,有机会再做bugSomething isn't workinggnu-baselineTracked by the GNU Bash 5.3.0 true-baseline ledgerperformancePerformance regression or improvement
Activity
caomengxuan666 commentedon Oct 23, 2026
Fixed by #1181 (2026-10-22/23 bulk GNU-parity wave): landed as a dedicated commit referencing this issue, covered by the audit differential suite (tests/fixtures/audit/), and re-verified byte-for-byte against a GNU bash 5.3.20 oracle; master CI (ff1a555) runs the suite green.
Closing now to restore the linkage: GitHub's closing-reference parser only honored the first entry of #1181's long
Fixeslist, so this stayed open after the fix landed. If anything still reproduces on current master, reopen with a transcript and it returns to the fix queue.perf(executor): migrate trap-liveness hot paths to allocation-free pr…