delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/20/04:31:37

Date: Sun, 20 Dec 1998 11:31:38 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: bowman <bowman AT montana DOT com>
cc: djgpp AT delorie DOT com, M Bailey <mark AT shire DOT globalnet DOT co DOT uk>
Subject: Re: which is the fastest way to clear the screen i mode13h?
In-Reply-To: <36799729.E70D2423@montana.com>
Message-ID: <Pine.SUN.3.91.981220113051.27996K-100000@is>
MIME-Version: 1.0
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019