[arch-general] Bashification of initscripts for moderate speedup

Victor Lowther victor.lowther at gmail.com
Wed Jun 30 14:13:23 EDT 2010


On Jun 30, 2010, at 12:40 PM, Thomas Bächler <thomas at archlinux.org>  
wrote:

> Am 28.06.2010 05:10, schrieb Victor Lowther:
>> I have spent some time over the last month or so rewriting the Arch
>> initscripts in idiomatic bash -- since they rely on bash-specific
>> features, trying to keep them fairly POSIX is rather a waste of  
>> time and
>> a net performance loss -- using bash-style conditionals is about 30%
>> faster when nothing needs to be touched on the filesystem and about  
>> 200%
>> easier to read, and you can use bash regexps in place of most trivial
>> uses of sed, grep, and awk when mangling parameters or variables --  
>> the
>> fewer short-lived processes we fork the better.
>>
>> You can browse changes I have made in the git repo @
>> http://git.fnordovax.org/arch-initscripts/log/?h=bashification and  
>> you
>> can checkout my changes to play around with from
>> git://fnordovax.org/~victor/arch-initscripts
>
> Okay, those are LOTS of patches. I agree with most of them, but not  
> all.
> However, reviewing and commenting them like this is a bit tedious -  
> can
> you use git send-email to send them to this list as a patch series,  
> so I
> can comment properly?

Sure. I will do so tonight.




More information about the arch-general mailing list