comp.lang.ada
 help / color / mirror / Atom feed
From: Tucker Taft <stt@averstar.com>
Subject: Re: Ada95 speed
Date: 1999/05/20
Date: 1999-05-20T00:00:00+00:00	[thread overview]
Message-ID: <3744141A.73D7A4D2@averstar.com> (raw)
In-Reply-To: 3743D5BB.37152F94@gte.net

Clifford J. Nelson wrote:
> 
> Here is the program again with all the crazy Mac operating system stuff.
> The graphics are one hundred times to slow as far as I'm concerned, and
> the other computations are about ten times slower than I expected. The
> "computer revolution" has been smashed by performance problems and you
> will have to "jump through hoops" and "thread needles" to get the
> performance implied by the advertised clock speeds of new computers and
> "compiled" languages.
> 
> Sorry, but, I just had to get that off my chest. The emperor has no
> clothes.

You still have a call on Quickdraw inside your inner loop.  You
should time the program with the calls on Quickdraw commented out,
and then compare the time with the calls uncommented.  That way
you can separate out the amount of time spent in the computations
versus the amount spent inside Quickdraw and friends.  My guess
is that you will find that almost all of the time is inside Quickdraw
and friends.  If it turns out that the computation is the slow
part, then I would have to believe that the floating point is somehow
being simulated, rather than executed by hardware (though on a PowerPC,
that doesn't make much sense).

> 
>    Cliff Nelson
> ...
>         for I in 0..NumberofColors loop
>           if (Z.Re * Z.Re + Z.Im * Z.Im) > 4.0  then
>            ballColor.red   := Types.UInt16(Itadjuster * I);
>            ballColor.green := Types.UInt16(Itadjuster * (I ** 3));
>            ballColor.blue  := Types.UInt16(Itadjuster * (I ** 2));
>            Quickdraw.SetCPixel(Short_Integer(X_Pos),
> Short_Integer(Y_Pos),
>            ballColor'Access);
>            exit;
>           end if;
>          Z := Z * Z + C; -- Complex arithmetic
>         end loop;
> ...
-- 
-Tucker Taft   stt@averstar.com   http://www.averstar.com/~stt/
Technical Director, Distributed IT Solutions  (www.averstar.com/tools)
AverStar (formerly Intermetrics, Inc.)   Burlington, MA  USA




  reply	other threads:[~1999-05-20  0:00 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <374182F2.B10AD449@Maths.UniNe.CH>
1999-05-18  0:00 ` Ada95 speed Tom Moran
1999-05-18  0:00   ` Gautier
1999-05-19  0:00     ` Robert Dewar
1999-05-20  0:00       ` Clifford J. Nelson
1999-05-20  0:00         ` Tucker Taft [this message]
1999-05-20  0:00           ` Tom Moran
1999-05-20  0:00             ` Tom Moran
1999-05-21  0:00               ` Tom Moran
1999-05-31  0:00         ` James E. Hopper
1999-06-01  0:00           ` Clifford J. Nelson
1999-06-01  0:00             ` James E. Hopper
1999-06-02  0:00             ` Robert Dewar
1999-06-04  0:00               ` Clifford J. Nelson
1999-06-05  0:00                 ` Robert Dewar
1999-06-01  0:00           ` Clifford J. Nelson
1999-06-01  0:00             ` James E. Hopper
1999-06-02  0:00               ` Clifford J. Nelson
1999-06-04  0:00                 ` Clifford J. Nelson
1999-06-02  0:00             ` James E. Hopper
1999-06-02  0:00               ` Clifford J. Nelson
1999-06-02  0:00                 ` James E. Hopper
1999-06-02  0:00                   ` Clifford J. Nelson
1999-06-02  0:00                     ` John B. Matthews, M.D.
1999-06-02  0:00                       ` Clifford J. Nelson
1999-06-02  0:00                     ` Gautier
1999-06-02  0:00                       ` John B. Matthews, M.D.
1999-06-03  0:00                       ` Ada95 speed (wandering off topic slightly) Dale Stanbrough
1999-06-03  0:00                         ` Larry Kilgallen
1999-06-04  0:00                           ` Aidan Skinner
1999-06-02  0:00             ` Ada95 speed Robert Dewar
1999-06-04  0:00               ` Clifford J. Nelson
1999-06-04  0:00                 ` Ole-Hjalmar Kristensen
1999-06-04  0:00                 ` David C. Hoos, Sr.
1999-06-03  0:00           ` Robert I. Eachus
1999-05-31  0:00       ` Gautier
1999-05-19  0:00   ` Robert Dewar
1999-05-18  0:00 Clifford J. Nelson
1999-05-17  0:00 ` David Starner
1999-05-18  0:00   ` Clifford J. Nelson
1999-05-18  0:00 ` Larry Kilgallen
1999-05-18  0:00 ` Tucker Taft
1999-05-18  0:00   ` Clifford J. Nelson
1999-05-18  0:00 ` Florian Weimer
1999-05-20  0:00 ` Tom Moran
1999-05-21  0:00   ` Clifford J. Nelson
1999-05-21  0:00     ` Tom Moran
1999-05-21  0:00       ` Clifford J. Nelson
1999-05-21  0:00         ` Tom Moran
  -- strict thread matches above, loose matches on Subject: below --
1999-06-05  0:00 tmoran
1999-06-05  0:00 ` Al Christians
1999-06-05  0:00   ` David C. Hoos, Sr.
1999-06-05  0:00 tmoran
1999-06-05  0:00 ` Robert Dewar
1999-06-05  0:00   ` Ehud Lamm
1999-06-05  0:00     ` William Starner
1999-06-05  0:00       ` Ehud Lamm
1999-06-05  0:00     ` Clifford J. Nelson
1999-06-06  0:00     ` David Botton
1999-06-06  0:00       ` Ehud Lamm
1999-06-07  0:00         ` Robert Dewar
1999-06-07  0:00           ` Ehud Lamm
1999-06-06  0:00 tmoran
1999-06-06  0:00 ` David C. Hoos, Sr.
1999-06-06  0:00   ` tmoran
1999-06-07  0:00     ` Robert Dewar
1999-06-06  0:00       ` David C. Hoos, Sr.
1999-06-07  0:00         ` Robert Dewar
1999-06-06  0:00       ` Brian Rogoff
1999-06-06  0:00 tmoran
1999-06-06  0:00 ` Robert Dewar
1999-06-07  0:00 Robert I. Eachus
1999-06-07  0:00 ` tmoran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox