busybox/init
Denys Vlasenko d2e07bc16c 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>
2013-08-16 11:48:48 +02:00
..
bootchartd.c bootchartd: add process accounting feature 2012-01-18 02:12:13 +01:00
Config.src init/*: move applet/kbuild/config/help bits into applet source files 2010-10-12 13:47:15 +02:00
halt.c halt: perror_msg_and_die needs bb_ prefix 2011-07-08 06:23:08 +02:00
init.c init: don't use fixed size buffer for command 2013-08-16 11:48:48 +02:00
Kbuild.src init/*: move applet/kbuild/config/help bits into applet source files 2010-10-12 13:47:15 +02:00
mesg.c mesg: operate on stdin, not on stderr (compat) 2011-03-28 00:59:16 +02:00
reboot.h *: trailing empty lines removed 2010-07-26 01:49:12 +02:00