while true (was Re: Must UNIX be a memory hog?)

Jim Shankland jas at ernie.Berkeley.EDU
Sat May 20 05:32:46 AEST 1989


In article <1197 at marvin.Solbourne.COM> dce at Solbourne.com (David Elliott) writes:
>The simplest speedup is to use a builtin command that returns
>true; specifically ":".  In other words, the fastest "while true"
>loop is actually
>
>	while :
>	do
>		...
>	done

Right; that's how I code my "while true" loops.  But what I haven't figured
out is:  how do I optimize my "while false" loops?

Jim Shankland
jas at ernie.berkeley.edu

"Blame it on the lies that killed us, blame it on the truth that ran us down"



More information about the Comp.unix.wizards mailing list