Subject: Re: /etc/rc.d/ runs slowsly
To: None <current-users@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: current-users
Date: 04/09/2000 07:49:07
Greywolf <greywolf@starwolf.com> typed:
:# The "ps -c" trick speeds up PS, but it's not the only problem with the
:# rc functions -- "while" loops in shell scripts are also somewhat slow,
:# especially if they have to fork 'test' twice on every iteration!  ;-)
:What "fork test"?  "test" is a builtin, no?

No, though given that people _normally_ only use /bin/sh for scripts rather
than interactive stuff and most scripts probably use test/[ - some quite a
bit more than others - it could be of some benefit performance wise to make
it internal to /bin/sh

Regards,
-- 
Geoff Wing : <gcw@pobox.com>     Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@rxvt.org>      Ego URL : http://pobox.com/~gcw/
Zsh Stuff  : <gcw@zsh.org>       Phone   : (Australia) 0413 431 874