Date: Sun, 20 Dec 1998 11:31:38 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: bowman cc: djgpp AT delorie DOT com, M Bailey Subject: Re: which is the fastest way to clear the screen i mode13h? In-Reply-To: <36799729.E70D2423@montana.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Thu, 17 Dec 1998, bowman wrote: > M Bailey wrote: > > > > Why is it faster than hand-coded assembly ? Especially if you make > > optimizations for the Pentium ? > > my tongue was firmly in my cheek at the time. What I meant : unless you > are in dire need of the fastest possible code, a tested and proven > library routine offers the fastest solution to the problem. Nevertheless, your advice was IMHO sound even if the run-time speed is considered. The only reason why `clrscr' might not be the fastest version ever is that it clears by lines, to only clear the current text window (which might be part of the display). Other than that, it already uses fast assembly code.