Alan Burlison wrote:
> Garrett D'Amore wrote:
>
>> If this can remove any external subprocesses from being called, it can
>> have a significant performance impact.  (At one point, someone figured
>> that removing a :sh= from one of the top-level Makefiles saved several
>> hours from build times.  This was a long time (5+ years?) ago.
>
> Yeah, that was me.  However it had nothing to do with the flavour of
> shell that was in use, it was just that we were calling 'sh -c echo #'
> several bazillion times per build.

My point is that if there are other nested cases that use some external
programs (sed, awk, grep, etc.) that can be replaced with ksh93
builtins, that _could_ result in an improvement.  I've not investigated
further to determine that 1) there are such cases, and 2) what the
performance impact of using some builtin would be.  I do think that
Roland or whoever else wants to advocate use of a shell other than what
we have today should _do_ this level of investigation.

    -- Garrett

_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to