C (143/254)

From:andrewmarkwell
Date:06 Apr 00 at 12:20:44
Subject:RE: SetAPen benchmarks...

On Thu, 06 Apr 2000 03:04:16 +0200, Allan Odgaard <Duff@DIKU.DK> wrote:
> Hi there,
>
> Some days ago someone asked about SetAPen overhead. I've tested it an
> d it's
> approximately five times faster to do this:
>
> if(GetAPen(rp) !=3D mypen)
> SetAPen(rp, mypen)
>
> Than to always just setting the pen, assuming that the pen is already
> set.=

Thanks, that's interesting. My reasons behind asking was because I am
debating replacing a lot PrintIText()'s with Text()'s to see if there
were any performance increases. I am assuming that PrintIText() sets
the pen without already checking(????) - in which case the Text() way
would be much faster.

Andrew Markwell

------------------------------------------------------------------------
GET A NEXTCARD VISA, in 30 seconds! Get rates as low as 2.9%
Intro or 9.9% Fixed APR and no hidden fees. Apply NOW!
http://click.egroups.com/1/936/1/_/451227/_/955021100/
------------------------------------------------------------------------