diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-10 15:08:44 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-10 15:08:44 +0000 |
commit | e8a0788b249cbac5bf5b2aa2d81bb8f6b29a7a4b (patch) | |
tree | fcdf3d51b6d60986b634c693d71355867bca82ff /libbb/Config.in | |
parent | d4fea900bdb92d7bba71348a40cb00b6748a8ecc (diff) | |
download | busybox-w32-e8a0788b249cbac5bf5b2aa2d81bb8f6b29a7a4b.tar.gz busybox-w32-e8a0788b249cbac5bf5b2aa2d81bb8f6b29a7a4b.tar.bz2 busybox-w32-e8a0788b249cbac5bf5b2aa2d81bb8f6b29a7a4b.zip |
moved biggest stack buffers to malloc space, or made their size configurable
(8k of shell line edit buffer is an overkill)
# make ARCH=i386 bloatcheck
function old new delta
read_line_input 3933 3967 +34
ifaddrlist 348 345 -3
do_loadfont 208 191 -17
edit_file 840 819 -21
.rodata 129112 129080 -32
uncompress 1305 1268 -37
loadfont_main 566 495 -71
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/6 up/down: 34/-181) Total: -147 bytes
Diffstat (limited to 'libbb/Config.in')
-rw-r--r-- | libbb/Config.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libbb/Config.in b/libbb/Config.in index 112a3d658..a1ff7c056 100644 --- a/libbb/Config.in +++ b/libbb/Config.in | |||
@@ -30,7 +30,17 @@ config FEATURE_EDITING | |||
30 | bool "Command line editing" | 30 | bool "Command line editing" |
31 | default n | 31 | default n |
32 | help | 32 | help |
33 | Enable command editing (mainly for shell). | 33 | Enable line editing (mainly for shell command line). |
34 | |||
35 | config FEATURE_EDITING_MAX_LEN | ||
36 | int "Maximum length of input" | ||
37 | range 128 8192 | ||
38 | default 1024 | ||
39 | depends on FEATURE_EDITING | ||
40 | help | ||
41 | Line editing code uses on-stack buffers for storage. | ||
42 | You may want to decrease this parameter if your target machine | ||
43 | benefits from smaller stack usage. | ||
34 | 44 | ||
35 | config FEATURE_EDITING_FANCY_KEYS | 45 | config FEATURE_EDITING_FANCY_KEYS |
36 | bool "Additional editing keys" | 46 | bool "Additional editing keys" |