[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#492086: partman: menus are very slow



On Thu, Jul 24, 2008 at 07:28:41PM -0400, Joey Hess wrote:
> Or one could teach busybox shell to jump to the in-busybox
> implementations of cat and all other busybox commands, thereby
> eliminating every exec in partman except for those needed to run
> subshells. (It'd still have to fork, but linux can fork very fast, and
> most shell tricks above involve a fork due to the use of subshells.)

Just for the record, it seems that busybox upstream is working on that:

config FEATURE_SH_NOFORK
        bool "Run 'nofork' applets directly"
        default n
        depends on (MSH || LASH || HUSH || ASH) && FEATURE_PREFER_APPLETS
        help
          This option causes busybox shells [currently only ash]
          to not execute typical fork/exec/wait sequence, but call <applet>_main
          directly, if possible. (Sometimes it is not possible: for example,
          this is not possible in pipes).

          This will be done only for some applets (those which are marked
          NOFORK in include/applets.h).

          This may significantly speed up some shell scripts.

          This feature is relatively new. Use with care.

It seems to have been added in busybox 1.11.

Cheers,
-- 
Jérémy Bobbio                        .''`. 
lunar@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   

Attachment: signature.asc
Description: Digital signature


Reply to: