diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-08-16 11:48:48 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-08-16 11:48:48 +0200 |
commit | d2e07bc16cbd68bc2771f9f163e610e4e327c67c (patch) | |
tree | 737d5309821fd44427754223965ec596bfa1fcf8 /networking/brctl.c | |
parent | 73fbe9dc86df6c7db425c2c3939ff98c8c44974e (diff) | |
download | busybox-d2e07bc16cbd68bc2771f9f163e610e4e327c67c.tar.gz |
init: don't use fixed size buffer for command
We store init actions forever. 256 bytes per action means that
a typical inittab of ~10 commands uses 2.5k just to remember
command strings - which are usually _much_ shorter than 256 bytes.
At a cost of a bit more code, it's possible to allocate
only actually needed amount.
function old new delta
init_exec 224 248 +24
new_init_action 140 142 +2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/brctl.c')
0 files changed, 0 insertions, 0 deletions