"Garrett D'Amore" <[EMAIL PROTECTED]> wrote:
> >> I just don't see the "why" here.
> >>
> >> Sure, one /could/ do all sorts of spiffy things at build time iff one
> >> could just use ksh93.
> >>
> >> But, I don't see anything in the ON tree today that /requires/ the use
> >> of ksh93.
> I see one possible justification for this, which is that with ksh93 you
> have a much larger vocabulary that doesn't require the use of external
> programs (i.e. it saves fork/exec.)
Most saves in fork/exec are done by using simple command lines as dmake does
not call the shell in case that no shell special characters are found in the
command line.
> 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.
The build time for ON on a recent machine is less than one hour....
If :sh= really takes a lot of the build time, then someone should take
care of enhanding dmake and rewriting the makefiles. Notethat smake e.g.
internally sets up several MAKE_* macros (mainly with uname(1) results)
in order to avoid calling the shell.
> What isn't clear to me is that any Makefiles _can_ benefit from this...
> are there any command lines that can be significantly simplified by
> using ksh syntax? How many of them? And how many times are they
> executed? And ultimately, what is the net impact to build time?
See above, decently planned Makefils will not benefit from avoiding fork()
as related commands will be only called a very limited number of times.
Jörg
--
EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni)
[EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code