diff options
author | Denys Vlasenko | 2023-06-18 00:47:55 +0200 |
---|---|---|
committer | Denys Vlasenko | 2023-06-18 18:12:14 +0200 |
commit | c72c5552edecb8a2f97cd7e2d9a09a3059986cca (patch) | |
tree | eafbd44ec238db465a6eaf95067820f6e7515a09 /shell/hush_test/hush-vars/var_nested1.tests | |
parent | 182e5a4d000cdb5808830b1f02c59d40c6e61150 (diff) | |
download | busybox-c72c5552edecb8a2f97cd7e2d9a09a3059986cca.zip busybox-c72c5552edecb8a2f97cd7e2d9a09a3059986cca.tar.gz |
shell/math: decrease stack usage by not allocating copies of variable names
We risk exhaust stack with alloca() with old code.
function old new delta
arith_apply 990 1023 +33
evaluate_string 1467 1494 +27
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 60/0) Total: 60 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-vars/var_nested1.tests')
0 files changed, 0 insertions, 0 deletions